Loading docs/examples/sepheaders.c +9 −7 Original line number Diff line number Diff line Loading @@ -53,14 +53,16 @@ int main(void) /* send all data to this function */ curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data); /* open the files */ /* open the header file */ headerfile = fopen(headerfilename, "wb"); if (headerfile == NULL) { if(!headerfile) { curl_easy_cleanup(curl_handle); return -1; } /* open the body file */ bodyfile = fopen(bodyfilename, "wb"); if (bodyfile == NULL) { if(!bodyfile) { curl_easy_cleanup(curl_handle); fclose(headerfile); return -1; Loading Loading
docs/examples/sepheaders.c +9 −7 Original line number Diff line number Diff line Loading @@ -53,14 +53,16 @@ int main(void) /* send all data to this function */ curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, write_data); /* open the files */ /* open the header file */ headerfile = fopen(headerfilename, "wb"); if (headerfile == NULL) { if(!headerfile) { curl_easy_cleanup(curl_handle); return -1; } /* open the body file */ bodyfile = fopen(bodyfilename, "wb"); if (bodyfile == NULL) { if(!bodyfile) { curl_easy_cleanup(curl_handle); fclose(headerfile); return -1; Loading