base64: Fixed compilation warnings when using Curl_base64_decode()
curl_sasl.c:294: warning: dereferencing type-punned pointer will break strict-aliasing rules getpart.c:201: warning: dereferencing type-punned pointer will break strict-aliasing rules
This commit is contained in:
@@ -191,14 +191,14 @@ static int decodedata(char **buf, /* dest buffer */
|
||||
size_t *len) /* dest buffer data length */
|
||||
{
|
||||
int error = 0;
|
||||
char *buf64 = NULL;
|
||||
unsigned char *buf64 = NULL;
|
||||
size_t src_len = 0;
|
||||
|
||||
if(!*len)
|
||||
return GPE_OK;
|
||||
|
||||
/* base64 decode the given buffer */
|
||||
error = (int) Curl_base64_decode(*buf, (unsigned char **) &buf64, &src_len);
|
||||
error = (int) Curl_base64_decode(*buf, &buf64, &src_len);
|
||||
if(error)
|
||||
return GPE_OUT_OF_MEMORY;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user