From 39e939a5079d39998558fc862b075372d4ed44c3 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Mon, 8 Jan 2001 14:48:34 +0000
Subject: [PATCH] corrected the separator when using URL globbing

---
 src/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main.c b/src/main.c
index a47d507958..fa49688d87 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;
     }
-- 
GitLab