<<< Date Index >>>     <<< Thread Index >>>

[PATCH 14 of 16] Use safe_fclose in pgpkey.c



1 file changed, 4 insertions(+), 4 deletions(-)
pgpkey.c |    8 ++++----


# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1236899523 25200
# Branch HEAD
# Node ID cd6b3c9bd20e5bb9d6dfc55c1201afd7d4b6d6a3
# Parent  9d7e16bed5696c5b1e9a71c703fb439df1e453e2
Use safe_fclose in pgpkey.c

diff --git a/pgpkey.c b/pgpkey.c
--- a/pgpkey.c
+++ b/pgpkey.c
@@ -569,13 +569,13 @@
       {
        mutt_perror _("Can't create filter");
        unlink (tempfile);
-       fclose (fp);
-       fclose (devnull);
+       safe_fclose (&fp);
+       safe_fclose (&devnull);
       }
 
       mutt_wait_filter (thepid);
-      fclose (fp);
-      fclose (devnull);
+      safe_fclose (&fp);
+      safe_fclose (&devnull);
       mutt_clear_error ();
       snprintf (cmd, sizeof (cmd), _("Key ID: 0x%s"), 
                pgp_keyid (pgp_principal_key 
(KeyTable[menu->current]->parent)));