1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 16:18:48 -05:00

multi-uv.c: Updated for curl coding standards

This commit is contained in:
Steve Holme 2014-11-19 20:10:27 +00:00
parent 34cb17b930
commit 804e462305

View File

@ -83,7 +83,7 @@ void add_download(const char *url, int num)
sprintf(filename, "%d.download", num);
file = fopen(filename, "w");
if (file == NULL) {
if(!file) {
fprintf(stderr, "Error opening %s\n", filename);
return;
}
@ -225,5 +225,6 @@ int main(int argc, char **argv)
uv_run(loop, UV_RUN_DEFAULT);
curl_multi_cleanup(curl_handle);
return 0;
}