remote-header-name: don't output filename when NULL
authorDaniel Stenberg <daniel@haxx.se>
Thu, 16 Sep 2010 21:27:03 +0000 (23:27 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 16 Sep 2010 21:27:03 +0000 (23:27 +0200)
src/main.c

index 6332bf2..720f68c 100644 (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