diff options
author | Rocco Rutte <pdmef@gmx.net> | 2009-03-15 13:46:52 +0100 |
---|---|---|
committer | Rocco Rutte <pdmef@gmx.net> | 2009-03-15 13:46:52 +0100 |
commit | 8cfd92192fbe9b2c17fdc2b262592a486025d0ff (patch) | |
tree | 6fa88dcb48254bd3d5a6492eb7889671482592db /main.c | |
parent | 06d425398e3ef6fd3b152d95f6def1b4b14ff43e (diff) |
Use safe_fclose() instead of fclose(), add fclose() to check_sec.sh
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -909,7 +909,7 @@ int main (int argc, char **argv) if (!option (OPTNOCURSES)) mutt_endwin (NULL); perror (tempfile); - fclose (fin); + safe_fclose (&fin); FREE (&tempfile); exit (1); } @@ -917,9 +917,9 @@ int main (int argc, char **argv) mutt_copy_stream (fin, fout); else if (bodytext) fputs (bodytext, fout); - fclose (fout); + safe_fclose (&fout); if (fin && fin != stdin) - fclose (fin); + safe_fclose (&fin); } } |