diff options
Diffstat (limited to 'iptables/ip6tables-restore.c')
-rw-r--r-- | iptables/ip6tables-restore.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/iptables/ip6tables-restore.c b/iptables/ip6tables-restore.c index ceffa616..cc50bb4f 100644 --- a/iptables/ip6tables-restore.c +++ b/iptables/ip6tables-restore.c @@ -393,7 +393,7 @@ int ip6tables_restore_main(int argc, char *argv[]) } if (strcmp(policy, "-") != 0) { - struct xt_counters count; + struct xt_counters count = {}; if (counters) { char *ctrs; @@ -403,9 +403,6 @@ int ip6tables_restore_main(int argc, char *argv[]) xtables_error(PARAMETER_PROBLEM, "invalid policy counters " "for chain '%s'\n", chain); - - } else { - memset(&count, 0, sizeof(count)); } DEBUGP("Setting policy of chain %s to %s\n", |