mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Jrn fixed a multiple URL output bug
This commit is contained in:
parent
52707f9590
commit
ca8196a4dc
@ -1473,9 +1473,9 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
for (i = 0; (url = next_url(urls)); ++i) {
|
for (i = 0; (url = next_url(urls)); ++i) {
|
||||||
if (outfiles) {
|
if (config->outfile) {
|
||||||
free(config->outfile);
|
free(config->outfile);
|
||||||
config->outfile = outfiles;
|
config->outfile = strdup(outfiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (config->outfile || config->remotefile) {
|
if (config->outfile || config->remotefile) {
|
||||||
@ -1757,6 +1757,9 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
free(url);
|
free(url);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
if(outfiles)
|
||||||
|
free(outfiles);
|
||||||
|
|
||||||
#ifdef MIME_SEPARATORS
|
#ifdef MIME_SEPARATORS
|
||||||
if (separator)
|
if (separator)
|
||||||
printf("--%s--\n", MIMEseparator);
|
printf("--%s--\n", MIMEseparator);
|
||||||
|
Loading…
Reference in New Issue
Block a user