]> granicus.if.org Git - neomutt/commitdiff
Reduce variable scope - mutt/hash.c
authorFederico Kircheis <federico.kircheis@gmail.com>
Mon, 5 Mar 2018 17:39:47 +0000 (18:39 +0100)
committerRichard Russon <rich@flatcap.org>
Tue, 6 Mar 2018 02:50:21 +0000 (02:50 +0000)
mutt/hash.c

index fc4a57201d1dcd19c8ec3c9284b0183b4ff09e18..32002fd3058b60e6e5028fe87ea88acf831632f9 100644 (file)
@@ -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);