From 56ece42c815c5a9af54e0f9b65f2a17d93646daf Mon Sep 17 00:00:00 2001
From: Patrick Monnerat <pm@datasphere.ch>
Date: Mon, 15 Jul 2013 19:49:30 +0200
Subject: curl_slist_append(): fix error detection

---
 lib/slist.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
-- 
cgit v1.2.3