remote-header-name: don't output filename when NULL

This commit is contained in:
Daniel Stenberg 2010-09-16 23:27:03 +02:00
parent 6d88d58dd5
commit abde4c9d84
1 changed files with 2 additions and 1 deletions

View File

@ -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