]> granicus.if.org Git - curl/commitdiff
corrected the separator when using URL globbing
authorDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jan 2001 14:48:34 +0000 (14:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Jan 2001 14:48:34 +0000 (14:48 +0000)
src/main.c

index a47d507958ad677d24fc985a1aa5aeabf6a967ad..fa49688d87cc58cd3ce79975267ac7d3b001c4fa 100644 (file)
@@ -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;
     }