From 422a20a4e62d7a7edf96aa7bc781ca20332247b1 Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Tue, 17 Feb 2015 15:52:36 +0000 Subject: [PATCH] app/testpmd: fix uninitialized flow control variables 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 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 4753bb488c..d37610a9d1 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -5194,7 +5194,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; /* -- 2.20.1