aboutsummaryrefslogtreecommitdiffstats
path: root/g10/revoke.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/revoke.c')
-rw-r--r--g10/revoke.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/g10/revoke.c b/g10/revoke.c
index c78d79c85..278bdca35 100644
--- a/g10/revoke.c
+++ b/g10/revoke.c
@@ -142,10 +142,8 @@ gen_revoke( const char *uname )
if( !opt.armor )
tty_printf("ASCII armored output forced.\n");
- if( !(out = open_outfile( NULL, 0 )) ) {
- rc = G10ERR_CREATE_FILE;
+ if( (rc = open_outfile( NULL, 0, &out )) )
goto leave;
- }
afx.what = 1;
afx.hdrlines = "Comment: A revocation certificate should follow\n";