]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
host: fix -Wshadow warning
authorVictor Julien <victor@inliniac.net>
Mon, 28 Nov 2016 09:07:25 +0000 (10:07 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 28 Nov 2016 12:55:19 +0000 (13:55 +0100)
src/host.c

index d992b0a0c352832fec98fe33abd380530070a169..8df0cde874e1a5bb70828efa7f3776706ab305db 100644 (file)
@@ -275,7 +275,7 @@ void HostShutdown(void)
     /* clear and free the hash */
     if (host_hash != NULL) {
         for (u = 0; u < host_config.hash_size; u++) {
-            Host *h = host_hash[u].head;
+            h = host_hash[u].head;
             while (h) {
                 Host *n = h->hnext;
                 HostFree(h);