X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=editmsg.c;h=c66f5eea6c3568d620a78c93a591a04b34c89289;hp=c77cbf9f051627014c66ca23a8ba2d2b7117e24f;hb=4fb2fb9b1c03ad9ffd59ff86f7eaa697e46ef49d;hpb=8476307969a605bea67f6b702b0c1e7a52038bed diff --git a/editmsg.c b/editmsg.c index c77cbf9..c66f5ee 100644 --- a/editmsg.c +++ b/editmsg.c @@ -92,7 +92,7 @@ static int edit_one_message (CONTEXT * ctx, HEADER * cur) goto bail; } - mutt_edit_file (NONULL (Editor), tmp); + mutt_edit_file(tmp); if ((rc = stat (tmp, &sb)) == -1) { mutt_error (_("Can't stat %s: %s"), tmp, strerror (errno)); @@ -165,8 +165,7 @@ static int edit_one_message (CONTEXT * ctx, HEADER * cur) mx_close_mailbox (&tmpctx, NULL); bail: - if (fp) - fclose (fp); + m_fclose(&fp); if (rc >= 0) unlink (tmp);