]> granicus.if.org Git - neomutt/commitdiff
Reduce variable scope - buffy.c
authorFederico Kircheis <federico.kircheis@gmail.com>
Thu, 1 Mar 2018 17:14:55 +0000 (18:14 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 3 Mar 2018 12:33:02 +0000 (12:33 +0000)
buffy.c

diff --git a/buffy.c b/buffy.c
index 7b6bca8c1e2b7e600c3fa1031f3732d6bf90ba07..9168d4564b97030b4c6c84bf566820b03a299f67 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -832,13 +832,12 @@ int mutt_buffy_notify(void)
  */
 void mutt_buffy(char *s, size_t slen)
 {
-  int pass, found = 0;
-
   mutt_expand_path(s, slen);
 
   if (mutt_buffy_check(false))
   {
-    for (pass = 0; pass < 2; pass++)
+    int found = 0;
+    for (int pass = 0; pass < 2; pass++)
     {
       for (struct Buffy *b = Incoming; b; b = b->next)
       {