From: Federico Kircheis Date: Thu, 1 Mar 2018 17:14:55 +0000 (+0100) Subject: Reduce variable scope - buffy.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=67039850c2b34c6d46facadce1ddc2b59a4389b3;p=neomutt Reduce variable scope - buffy.c --- diff --git a/buffy.c b/buffy.c index 7b6bca8c1..9168d4564 100644 --- 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) {