]> granicus.if.org Git - neomutt/commitdiff
reduce variable scope
authorRichard Russon <rich@flatcap.org>
Fri, 8 Feb 2019 19:55:42 +0000 (19:55 +0000)
committerRichard Russon <rich@flatcap.org>
Fri, 8 Feb 2019 20:17:45 +0000 (20:17 +0000)
mbox/mbox.c

index 04a46d0f22f7b4463724517c58bbfada283d479a..65c8661cde26efb8f735114ba93562b44ebd2705 100644 (file)
@@ -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);
   }