diff options
Diffstat (limited to 'g10/keydb.c')
-rw-r--r-- | g10/keydb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/g10/keydb.c b/g10/keydb.c index 934002498..7b411dbfe 100644 --- a/g10/keydb.c +++ b/g10/keydb.c @@ -444,13 +444,13 @@ maybe_create_keyring_or_box (char *filename, int is_box, int force_create) that the detection magic will work the next time it is used. */ if (is_box) { - FILE *fp = fopen (filename, "wb"); + estream_t fp = es_fopen (filename, "wb"); if (!fp) rc = gpg_error_from_syserror (); else { rc = _keybox_write_header_blob (fp, 1); - fclose (fp); + es_fclose (fp); } if (rc) { |