1
0
mirror of https://github.com/moparisthebest/curl synced 2025-03-11 07:39:50 -04:00

fixed a strdup(NULL) error

This commit is contained in:
Daniel Stenberg 2000-12-12 09:30:52 +00:00
parent 5d44f00201
commit ec420c62d9

View File

@ -1475,7 +1475,7 @@ operate(struct Configurable *config, int argc, char *argv[])
for (i = 0; (url = next_url(urls)); ++i) { for (i = 0; (url = next_url(urls)); ++i) {
if (config->outfile) { if (config->outfile) {
free(config->outfile); free(config->outfile);
config->outfile = strdup(outfiles); config->outfile = outfiles?strdup(outfiles):NULL;
} }
if (config->outfile || config->remotefile) { if (config->outfile || config->remotefile) {