From: Richard Russon Date: Fri, 8 Feb 2019 19:55:42 +0000 (+0000) Subject: reduce variable scope X-Git-Tag: 2019-10-25~372^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7b3a5bd42da0efb9263c65d68daf74c942b35bf;p=neomutt reduce variable scope --- diff --git a/mbox/mbox.c b/mbox/mbox.c index 04a46d0f2..65c8661cd 100644 --- a/mbox/mbox.c +++ b/mbox/mbox.c @@ -1147,7 +1147,6 @@ static int mbox_mbox_sync(struct Mailbox *m, int *index_hint) FILE *fp = NULL; struct Progress progress; char msgbuf[PATH_MAX + 64]; - struct Mailbox *tmp = NULL; /* sort message by their position in the mailbox on disk */ if (Sort != SORT_ORDER) @@ -1449,7 +1448,7 @@ static int mbox_mbox_sync(struct Mailbox *m, int *index_hint) if (CheckMboxSize) { - tmp = mutt_find_mailbox(m->path); + struct Mailbox *tmp = mutt_find_mailbox(m->path); if (tmp && !tmp->has_new) mutt_update_mailbox(tmp); }