From: Federico Kircheis Date: Mon, 5 Mar 2018 17:39:47 +0000 (+0100) Subject: Reduce variable scope - mutt/hash.c X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a931880205fa485765dc940e5b06803bb5b55af;p=neomutt Reduce variable scope - mutt/hash.c --- diff --git a/mutt/hash.c b/mutt/hash.c index fc4a57201..32002fd30 100644 --- a/mutt/hash.c +++ b/mutt/hash.c @@ -189,11 +189,10 @@ static struct HashElem *union_hash_insert(struct Hash *table, union HashKey key, else { struct HashElem *tmp = NULL, *last = NULL; - int r; for (tmp = table->table[h], last = NULL; tmp; last = tmp, tmp = tmp->next) { - r = table->cmp_key(tmp->key, key); + const int r = table->cmp_key(tmp->key, key); if (r == 0) { FREE(&ptr);