curl_slist_append(): fix error detection
This commit is contained in:
parent
99924f6606
commit
56ece42c81
@ -90,7 +90,7 @@ struct curl_slist *curl_slist_append(struct curl_slist *list,
|
||||
{
|
||||
char *dupdata = strdup(data);
|
||||
|
||||
if(!data)
|
||||
if(!dupdata)
|
||||
return NULL;
|
||||
|
||||
list = Curl_slist_append_nodup(list, dupdata);
|
||||
|
Loading…
x
Reference in New Issue
Block a user