summaryrefslogtreecommitdiff
path: root/examples/ip_pipeline/cli.c
diff options
context:
space:
mode:
authorFan Zhang <roy.fan.zhang@intel.com>2018-04-20 15:39:21 +0100
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>2018-05-08 13:12:39 +0200
commit84a27d8913ce1d8a36fc1168fc3cbf36526e7dee (patch)
tree873bec2faca5e0710d2ef332243c6bcb2d8b364e /examples/ip_pipeline/cli.c
parent9b60795143bbdf03bcf266492f72c4286d316c71 (diff)
downloaddpdk-84a27d8913ce1d8a36fc1168fc3cbf36526e7dee.zip
dpdk-84a27d8913ce1d8a36fc1168fc3cbf36526e7dee.tar.gz
dpdk-84a27d8913ce1d8a36fc1168fc3cbf36526e7dee.tar.xz
examples/ip_pipeline: fix uninitialized link parameter
Coverity issue: 272575 Fixes: 133c2c6565d6 ("examples/ip_pipeline: add link object") Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com> Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
Diffstat (limited to 'examples/ip_pipeline/cli.c')
-rw-r--r--examples/ip_pipeline/cli.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c
index 20fbefb..6aebae4 100644
--- a/examples/ip_pipeline/cli.c
+++ b/examples/ip_pipeline/cli.c
@@ -138,6 +138,8 @@ cmd_link(char **tokens,
struct link *link;
char *name;
+ memset(&p, 0, sizeof(p));
+
if ((n_tokens < 13) || (n_tokens > 14 + LINK_RXQ_RSS_MAX)) {
snprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);
return;