From: Jeremy Sowden Date: Fri, 19 Jul 2019 11:10:10 +0000 (+0100) Subject: rule: removed duplicate member initializer. X-Git-Tag: v0.9.2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4d0f16834f62e7e895f05f2e961d62487327f4b;p=thirdparty%2Fnftables.git rule: removed duplicate member initializer. Initialization of a netlink_ctx included two initializers for .nft. Removed one of them. Fixes: 2dc07bcd7eaa ("src: pass struct nft_ctx through struct netlink_ctx") Signed-off-by: Jeremy Sowden Acked-by: Phil Sutter Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/rule.c b/src/rule.c index b957b4571..0ebe91e79 100644 --- a/src/rule.c +++ b/src/rule.c @@ -240,7 +240,6 @@ int cache_update(struct nft_ctx *nft, unsigned int flags, struct list_head *msgs .list = LIST_HEAD_INIT(ctx.list), .nft = nft, .msgs = msgs, - .nft = nft, }; struct nft_cache *cache = &nft->cache; uint32_t genid, genid_stop;