From 815899cc83927957d1de8a9b0f20a967810dafdc Mon Sep 17 00:00:00 2001 From: Federico Kircheis Date: Wed, 28 Feb 2018 20:39:29 +0100 Subject: [PATCH] Reduce variable scope - commands.c --- commands.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands.c b/commands.c index af92f7081a5..b4cb941841c 100644 --- a/commands.c +++ b/commands.c @@ -755,7 +755,6 @@ int mutt_save_message_ctx(struct Header *h, int delete, int decode, int decrypt, */ int mutt_save_message(struct Header *h, int delete, int decode, int decrypt) { - int need_buffy_cleanup; int need_passphrase = 0, app = 0; char prompt[SHORT_STRING], buf[_POSIX_PATH_MAX]; struct Context ctx; @@ -923,7 +922,7 @@ int mutt_save_message(struct Header *h, int delete, int decode, int decrypt) } } - need_buffy_cleanup = (ctx.magic == MUTT_MBOX || ctx.magic == MUTT_MMDF); + const int need_buffy_cleanup = (ctx.magic == MUTT_MBOX || ctx.magic == MUTT_MMDF); mx_close_mailbox(&ctx, NULL);