aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index e1234f7fd..d42fe11b9 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1475,7 +1475,7 @@ operate(struct Configurable *config, int argc, char *argv[])
for (i = 0; (url = next_url(urls)); ++i) {
if (config->outfile) {
free(config->outfile);
- config->outfile = strdup(outfiles);
+ config->outfile = outfiles?strdup(outfiles):NULL;
}
if (config->outfile || config->remotefile) {