]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
move declaration to start of block
authorMark Andrews <marka@isc.org>
Wed, 30 Nov 2011 06:07:52 +0000 (06:07 +0000)
committerMark Andrews <marka@isc.org>
Wed, 30 Nov 2011 06:07:52 +0000 (06:07 +0000)
lib/isc/symtab.c

index 0333d193b8ab4c33ec3fd4371bcbd6752d1b9b00..a9329c3ce787f51f6033faf5eae39810da3880d1 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: symtab.c,v 1.30.558.1 2011/11/30 04:26:22 each Exp $ */
+/* $Id: symtab.c,v 1.30.558.2 2011/11/30 06:07:52 marka Exp $ */
 
 /*! \file */
 
@@ -206,9 +206,10 @@ grow_table(isc_symtab_t *symtab) {
                elt_t *elt, *nelt;
 
                for (elt = HEAD(symtab->table[i]); elt != NULL; elt = nelt) {
-                       nelt = NEXT(elt, link);
                        unsigned int hv;
 
+                       nelt = NEXT(elt, link);
+
                        UNLINK(symtab->table[i], elt, link);
                        hv = hash(elt->key, symtab->case_sensitive);
                        APPEND(newtable[hv % newsize], elt, link);