mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
formdata: use NULL, not 0, when returning pointers
This commit is contained in:
parent
9314bf8405
commit
e50abe6478
@ -1553,7 +1553,7 @@ char *Curl_formpostheader(void *formp, size_t *len)
|
|||||||
struct Form *form=(struct Form *)formp;
|
struct Form *form=(struct Form *)formp;
|
||||||
|
|
||||||
if(!form->data)
|
if(!form->data)
|
||||||
return 0; /* nothing, ERROR! */
|
return NULL; /* nothing, ERROR! */
|
||||||
|
|
||||||
header = form->data->line;
|
header = form->data->line;
|
||||||
*len = form->data->length;
|
*len = form->data->length;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user