Skip to content

Commit

Permalink
Reduce variable scope - commands.c
Browse files Browse the repository at this point in the history
  • Loading branch information
fekir authored and flatcap committed Mar 3, 2018
1 parent 213eadc commit 815899c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions commands.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

Expand Down

0 comments on commit 815899c

Please sign in to comment.