diff options
Diffstat (limited to 'g10/plaintext.c')
-rw-r--r-- | g10/plaintext.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/g10/plaintext.c b/g10/plaintext.c index edd12891c..831a81089 100644 --- a/g10/plaintext.c +++ b/g10/plaintext.c @@ -56,13 +56,8 @@ handle_plaintext( PKT_plaintext *pt, md_filter_context_t *mfx ) fname[pt->namelen] = 0; } - if( !*fname ) { /* no filename given */ - if( opt.outfile_is_stdout ) - fp = stdout; - else { - log_error("no outputfile given\n"); - goto leave; - } + if( !*fname ) { /* no filename given; write to stdout */ + fp = stdout; } else if( overwrite_filep( fname ) ) goto leave; |