diff options
-rw-r--r-- | lib/slist.c | 2 |
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); |