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

[PATCH 10 of 16] Use safe_fclose instead of close



1 file changed, 1 insertion(+), 1 deletion(-)
main.c |    2 +-


# HG changeset patch
# User Erik Hovland <erik@xxxxxxxxxxx>
# Date 1236896390 25200
# Branch HEAD
# Node ID 2709841321ac64d0a3e8c01cbb26652d73f4a72b
# Parent  4c47858b2331ed8fd6d8a03a95e61ae74aa53319
Use safe_fclose instead of close

diff --git a/main.c b/main.c
--- a/main.c
+++ b/main.c
@@ -909,7 +909,7 @@
          if (!option (OPTNOCURSES))
            mutt_endwin (NULL);
          perror (tempfile);
-         fclose (fin);
+         safe_fclose (&fin);
          FREE (&tempfile);
          exit (1);
        }