From patchwork Fri Sep 6 07:51:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Bursztyka X-Patchwork-Id: 273114 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C1A012C00F2 for ; Fri, 6 Sep 2013 17:51:57 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750737Ab3IFHvz (ORCPT ); Fri, 6 Sep 2013 03:51:55 -0400 Received: from mga02.intel.com ([134.134.136.20]:8636 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750726Ab3IFHvz (ORCPT ); Fri, 6 Sep 2013 03:51:55 -0400 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga101.jf.intel.com with ESMTP; 06 Sep 2013 00:51:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.90,852,1371106800"; d="scan'208";a="391894223" Received: from rd-180.fi.intel.com ([10.237.68.152]) by fmsmga001.fm.intel.com with ESMTP; 06 Sep 2013 00:51:53 -0700 From: Tomasz Bursztyka To: netfilter-devel@vger.kernel.org Cc: Tomasz Bursztyka Subject: [iptables-nftables PATCH 1/3] nft: Fix a minor compilation warning Date: Fri, 6 Sep 2013 10:51:48 +0300 Message-Id: <1378453910-17954-2-git-send-email-tomasz.bursztyka@linux.intel.com> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1378453910-17954-1-git-send-email-tomasz.bursztyka@linux.intel.com> References: <1378453910-17954-1-git-send-email-tomasz.bursztyka@linux.intel.com> Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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 --- iptables/nft-shared.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iptables/nft-shared.c b/iptables/nft-shared.c index cdc3f83..5681e26 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? */