diff options
-rw-r--r-- | lib/slist.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/slist.c b/lib/slist.c index 108d0f005..3cac6ca21 100644 --- a/lib/slist.c +++ b/lib/slist.c @@ -59,8 +59,7 @@ struct curl_slist *Curl_slist_append_nodup(struct curl_slist *list, char *data) struct curl_slist *last; struct curl_slist *new_item; - if(!data) - return NULL; + DEBUGASSERT(data); new_item = malloc(sizeof(struct curl_slist)); if(!new_item) |