1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

corrected the separator when using URL globbing

This commit is contained in:
Daniel Stenberg 2001-01-08 14:48:34 +00:00
parent 803005892c
commit 39e939a507

View File

@ -1530,7 +1530,7 @@ operate(struct Configurable *config, int argc, char *argv[])
/* save outfile pattern before expansion */ /* save outfile pattern before expansion */
outfiles = urlnode->outfile?strdup(urlnode->outfile):NULL; outfiles = urlnode->outfile?strdup(urlnode->outfile):NULL;
if (outfiles && strequal(outfiles, "-") && urlnum > 1) { if (!outfiles || strequal(outfiles, "-") && urlnum > 1) {
/* multiple files extracted to stdout, insert separators! */ /* multiple files extracted to stdout, insert separators! */
separator = 1; separator = 1;
} }