From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id B21349AD1 for ; Tue, 17 Feb 2015 16:52:40 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 17 Feb 2015 07:47:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,595,1418112000"; d="scan'208";a="653292115" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga001.jf.intel.com with ESMTP; 17 Feb 2015 07:52:39 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id t1HFqbec032318 for ; Tue, 17 Feb 2015 15:52:37 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id t1HFqaI4013579 for ; Tue, 17 Feb 2015 15:52:36 GMT Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id t1HFqaXA013575 for dev@dpdk.org; Tue, 17 Feb 2015 15:52:36 GMT From: Pablo de Lara To: dev@dpdk.org Date: Tue, 17 Feb 2015 15:52:36 +0000 Message-Id: <1424188356-13543-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] testpmd: initialize rx_fc_en and tx_fc_en to zero X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Feb 2015 15:52:41 -0000 rx_fc_en and tx_fc_en in cmd_link_flow_ctrl_set_parsed could be used without being initialized. Signed-off-by: Pablo de Lara --- app/test-pmd/cmdline.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index b2aab40..d52ba89 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -5117,7 +5117,7 @@ cmd_link_flow_ctrl_set_parsed(void *parsed_result, struct cmd_link_flow_ctrl_set_result *res = parsed_result; cmdline_parse_inst_t *cmd = data; struct rte_eth_fc_conf fc_conf; - int rx_fc_en, tx_fc_en; + int rx_fc_en, tx_fc_en = 0; int ret; /* -- 1.7.4.1