if(config->create_dirs &&
(-1 == create_dir_hierarchy(outfile, config->errors))) {
free(url);
- res = CURLE_WRITE_ERROR;
- break;
- }
+ res = CURLE_WRITE_ERROR;
+ break;
+ }
if(config->resume_from_current) {
/* We're told to continue from where we are now. Get the
if (!outs.stream) {
helpf(config->errors, "Can't open '%s'!\n", outfile);
free(url);
- res = CURLE_WRITE_ERROR;
- break;
+ res = CURLE_WRITE_ERROR;
+ break;
}
}
else {
if(!urlbuffer) {
helpf(config->errors, "out of memory\n");
free(url);
- res = CURLE_OUT_OF_MEMORY;
- break;
+ res = CURLE_OUT_OF_MEMORY;
+ break;
}
if(ptr)
/* there is a trailing slash on the URL */
inglob = NULL;
}
- res = CURLE_OUT_OF_MEMORY;
- goto quit_urls;
+ res = CURLE_OUT_OF_MEMORY;
+ goto quit_urls;
}
if (pc)
sprintf(urlbuffer, "%s%c%s", url, sep, httpgetfields);
inglob = NULL;
}
- res = CURLE_OUT_OF_MEMORY;
- goto quit_urls;
+ res = CURLE_OUT_OF_MEMORY;
+ goto quit_urls;
}
}