diff options
author | Phil Sutter <phil@nwl.cc> | 2018-07-19 18:31:54 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-07-19 22:15:12 +0200 |
commit | 87b5b9e2240e7cd5487d160cc3e059c61622ce75 (patch) | |
tree | 490686a1485eed2d1a9b3a055a797f1983f97794 /iptables/nft-bridge.c | |
parent | 907da5c505b219537586f7c2bdb7320c4f97386f (diff) |
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 <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-bridge.c')
-rw-r--r-- | iptables/nft-bridge.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/iptables/nft-bridge.c b/iptables/nft-bridge.c index 917d802e..4b3c163b 100644 --- a/iptables/nft-bridge.c +++ b/iptables/nft-bridge.c @@ -217,10 +217,7 @@ static void nft_bridge_parse_meta(struct nft_xt_ctx *ctx, struct iptables_command_state *cs = data; struct ebt_entry *fw = &cs->eb; uint8_t invflags = 0; - char iifname[IFNAMSIZ], oifname[IFNAMSIZ]; - - memset(iifname, 0, sizeof(iifname)); - memset(oifname, 0, sizeof(oifname)); + char iifname[IFNAMSIZ] = {}, oifname[IFNAMSIZ] = {}; parse_meta(e, ctx->meta.key, iifname, NULL, oifname, NULL, &invflags); |