From: Tomasz Bursztyka Date: Fri, 6 Sep 2013 07:51:48 +0000 (+0300) Subject: nft: Fix a minor compilation warning X-Git-Tag: v1.6.0~111^2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7791905f7db3bce63d3316c5adaf2f735cff3c1d;p=thirdparty%2Fiptables.git nft: Fix a minor compilation warning nft-shared.c: In function ‘nft_rule_to_iptables_command_state’: nft-shared.c:454:22: warning: ‘jumpto’ may be used uninitialized in this function [-Wmaybe-uninitialized] nft-shared.c:432:14: note: ‘jumpto’ was declared here All verdicts are managed and jumpto has to get a value, but since the compiler complains, let's fix it. Signed-off-by: Tomasz Bursztyka Signed-off-by: Pablo Neira Ayuso --- diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index cdc3f835..5681e264 100644 --- a/iptables/nft-shared.c +++ b/iptables/nft-shared.c @@ -429,7 +429,7 @@ nft_parse_immediate(struct nft_rule_expr *e, struct nft_rule_expr_iter *iter, int verdict = nft_rule_expr_get_u32(e, NFT_EXPR_IMM_VERDICT); const char *chain = nft_rule_expr_get_str(e, NFT_EXPR_IMM_CHAIN); struct nft_family_ops *ops; - const char *jumpto; + const char *jumpto = NULL; bool nft_goto = false; /* Standard target? */