Π·Π΅ΡΠΊΠ°Π»ΠΎ ΠΈΠ· https://github.com/Unity-Technologies/curl.git
Jφrn fixed a multiple URL output bug
This commit is contained in:
Π ΠΎΠ΄ΠΈΡΠ΅Π»Ρ
52707f9590
ΠΠΎΠΌΠΌΠΈΡ
ca8196a4dc
|
@ -1473,9 +1473,9 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||
#endif
|
||||
}
|
||||
for (i = 0; (url = next_url(urls)); ++i) {
|
||||
if (outfiles) {
|
||||
if (config->outfile) {
|
||||
free(config->outfile);
|
||||
config->outfile = outfiles;
|
||||
config->outfile = strdup(outfiles);
|
||||
}
|
||||
|
||||
if (config->outfile || config->remotefile) {
|
||||
|
@ -1757,6 +1757,9 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||
free(url);
|
||||
|
||||
}
|
||||
if(outfiles)
|
||||
free(outfiles);
|
||||
|
||||
#ifdef MIME_SEPARATORS
|
||||
if (separator)
|
||||
printf("--%s--\n", MIMEseparator);
|
||||
|
|
ΠΠ°Π³ΡΡΠ·ΠΊΠ°β¦
Π‘ΡΡΠ»ΠΊΠ° Π² Π½ΠΎΠ²ΠΎΠΉ Π·Π°Π΄Π°ΡΠ΅