summaryrefslogtreecommitdiff
path: root/lib/slist.c
diff options
context:
space:
mode:
authorPatrick Monnerat <pm@datasphere.ch>2013-07-15 19:49:30 +0200
committerPatrick Monnerat <pm@datasphere.ch>2013-07-15 19:49:30 +0200
commit56ece42c815c5a9af54e0f9b65f2a17d93646daf (patch)
tree647a9c663ba02d596e41c9634b89e053360b67a6 /lib/slist.c
parent99924f66067ebd00d4fffd1d318de2680619d91b (diff)
downloadcurl-56ece42c815c5a9af54e0f9b65f2a17d93646daf.tar.gz
curl_slist_append(): fix error detection
Diffstat (limited to 'lib/slist.c')
-rw-r--r--lib/slist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/slist.c b/lib/slist.c
index 123ea05c3..108d0f005 100644
--- a/lib/slist.c
+++ b/lib/slist.c
@@ -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);