diff --git a/src/main.c b/src/main.c index a47d50795..fa49688d8 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; }