]> granicus.if.org Git - neomutt/commitdiff
Reduce variable scope - buffy.c
authorFederico Kircheis <federico.kircheis@gmail.com>
Tue, 6 Mar 2018 19:33:41 +0000 (20:33 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 8 Mar 2018 02:27:14 +0000 (02:27 +0000)
buffy.c

diff --git a/buffy.c b/buffy.c
index 9168d4564b97030b4c6c84bf566820b03a299f67..f24cc0139aac2260e6b7ee97f4d07fc820978151 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -865,10 +865,9 @@ void mutt_buffy(char *s, size_t slen)
 #ifdef USE_NOTMUCH
 void mutt_buffy_vfolder(char *s, size_t slen)
 {
-  bool found = false;
-
   if (mutt_buffy_check(false))
   {
+    bool found = false;
     for (int pass = 0; pass < 2; pass++)
     {
       for (struct Buffy *b = Incoming; b; b = b->next)