Code

iptables plugin: Initialize ip_version.
[collectd.git] / src / iptables.c
index fb887da6ed28d4f01703ca3f93ffa7e7faba9fad..3062a0cd400ae48dad430efdd9a831aab2500a69 100644 (file)
@@ -89,7 +89,7 @@ static int chain_num = 0;
 static int iptables_config (const char *key, const char *value)
 {
        /* int ip_value; */
-       protocol_version_t ip_version;
+       protocol_version_t ip_version = 0;
 
        if (strcasecmp (key, "Chain") == 0)
                ip_version = IPV4;