aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2010-09-16 23:27:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2010-09-16 23:27:03 +0200
commitabde4c9d84b357cf935e44f1f92d980996e637d7 (patch)
tree90ef31d69902afc86385fc32f8b75bc1ef1bfd56 /src
parent6d88d58dd51cb6f7c6527998e1ac78b32e53cf62 (diff)
remote-header-name: don't output filename when NULL
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