diff options
Diffstat (limited to 'g10/export.c')
-rw-r--r-- | g10/export.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/g10/export.c b/g10/export.c index 2c824d2b0..301cb5ece 100644 --- a/g10/export.c +++ b/g10/export.c @@ -71,10 +71,9 @@ do_export( STRLIST users, int secret ) memset( &zfx, 0, sizeof zfx); init_packet( &pkt ); - if( !(out = open_outfile( NULL, 0 )) ) { - rc = G10ERR_CREATE_FILE; + if( (rc = open_outfile( NULL, 0, &out )) ) goto leave; - } + if( opt.armor ) { afx.what = secret?5:1; |