Skip to content
Snippets Groups Projects
Commit 39e939a5 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

corrected the separator when using URL globbing

parent 80300589
No related branches found
No related tags found
No related merge requests found
......@@ -1530,7 +1530,7 @@ operate(struct Configurable *config, int argc, char *argv[])
/* save outfile pattern before expansion */
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! */
separator = 1;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment