aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 6332bf214..720f68c30 100644
--- a/src/main.c
+++ b/src/main.c
@@ -5436,7 +5436,8 @@ operate(struct Configurable *config, int argc, argv_item_t argv[])
break;
}
- if (config->content_disposition && outs.stream && !config->mute)
+ if(config->content_disposition && outs.stream && !config->mute &&
+ outs.filename)
printf("curl: Saved to filename '%s'\n", outs.filename);
/* if retry-max-time is non-zero, make sure we haven't exceeded the