From 87b5b9e2240e7cd5487d160cc3e059c61622ce75 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Thu, 19 Jul 2018 18:31:54 +0200 Subject: iptables: replace memset by c99-style initializers This cleans up a few obvious cases identified by grepping the source code for 'memset'. Signed-off-by: Phil Sutter Signed-off-by: Florian Westphal --- iptables/xtables-monitor.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'iptables/xtables-monitor.c') diff --git a/iptables/xtables-monitor.c b/iptables/xtables-monitor.c index 08292a79..dd380300 100644 --- a/iptables/xtables-monitor.c +++ b/iptables/xtables-monitor.c @@ -600,7 +600,7 @@ int xtables_monitor_main(int argc, char *argv[]) struct mnl_socket *nl; char buf[MNL_SOCKET_BUFFER_SIZE]; uint32_t nfgroup = 0; - struct cb_arg cb_arg; + struct cb_arg cb_arg = {}; int ret, c; xtables_globals.program_name = "xtables-monitor"; @@ -617,7 +617,6 @@ int xtables_monitor_main(int argc, char *argv[]) init_extensions4(); #endif - memset(&cb_arg, 0, sizeof(cb_arg)); opterr = 0; while ((c = getopt_long(argc, argv, "ceht46V", options, NULL)) != -1) { switch (c) { -- cgit v1.2.3