git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
485e82c
)
app/testpmd: fix uninitialized flow control variables
author
Pablo de Lara
<pablo.de.lara.guarch@intel.com>
Tue, 17 Feb 2015 15:52:36 +0000
(15:52 +0000)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 11:13:28 +0000
(12:13 +0100)
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 <pablo.de.lara.guarch@intel.com>
app/test-pmd/cmdline.c
patch
|
blob
|
history
diff --git
a/app/test-pmd/cmdline.c
b/app/test-pmd/cmdline.c
index
4753bb4
..
d37610a
100644
(file)
--- 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;
/*