]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
formdata: use NULL, not 0, when returning pointers
authorDaniel Stenberg <daniel@haxx.se>
Sun, 25 Dec 2016 09:36:29 +0000 (10:36 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 25 Dec 2016 09:36:29 +0000 (10:36 +0100)
lib/formdata.c

index abd2da0751d5aa5de3dea8a8a3b4b771252a0626..c12227623dddd2ad0266c7162b7a0d228304bd7a 100644 (file)
@@ -1553,7 +1553,7 @@ char *Curl_formpostheader(void *formp, size_t *len)
   struct Form *form=(struct Form *)formp;
 
   if(!form->data)
-    return 0; /* nothing, ERROR! */
+    return NULL; /* nothing, ERROR! */
 
   header = form->data->line;
   *len = form->data->length;