X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fiptables.c;h=6f1030fb374549c04983ced5a65aae51db2aa9e5;hb=950e67e00dab1ec4bc2ea4177263c14b4abdac18;hp=fb887da6ed28d4f01703ca3f93ffa7e7faba9fad;hpb=52b47d4c2fcb6cc5226ed9b4f6a0720c1bb4b3d1;p=collectd.git diff --git a/src/iptables.c b/src/iptables.c index fb887da6..6f1030fb 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -29,6 +29,8 @@ #include "plugin.h" #include "configfile.h" +#include + #if OWN_LIBIPTC # include "libiptc/libiptc.h" # include "libiptc/libip6tc.h" @@ -89,7 +91,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;