diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-09-16 23:27:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-09-16 23:27:03 +0200 |
commit | abde4c9d84b357cf935e44f1f92d980996e637d7 (patch) | |
tree | 90ef31d69902afc86385fc32f8b75bc1ef1bfd56 /src | |
parent | 6d88d58dd51cb6f7c6527998e1ac78b32e53cf62 (diff) |
remote-header-name: don't output filename when NULL
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
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 |