mirror of
https://github.com/curl/curl.git
synced 2026-07-28 15:13:06 +03:00
curl_slist_append(): fix error detection
This commit is contained in:
parent
99924f6606
commit
56ece42c81
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue