gpg: Fix using --decrypt along with --use-embedded-filename.
[gnupg.git] / g10 / plaintext.c
index c5d1ddb..f9e0a42 100644 (file)
@@ -70,7 +70,8 @@ get_output_file (const byte *embedded_name, int embedded_namelen,
           goto leave;
         }
     }
-  else if (opt.outfile)
+  else if (opt.outfile
+           && !(opt.flags.use_embedded_filename && opt.flags.dummy_outfile))
     {
       fname = xtrystrdup (opt.outfile);
       if (!fname)