From 84a27d8913ce1d8a36fc1168fc3cbf36526e7dee Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Fri, 20 Apr 2018 15:39:21 +0100 Subject: [PATCH] examples/ip_pipeline: fix uninitialized link parameter Coverity issue: 272575 Fixes: 133c2c6565d6 ("examples/ip_pipeline: add link object") Signed-off-by: Fan Zhang Reviewed-by: Jasvinder Singh --- examples/ip_pipeline/cli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/ip_pipeline/cli.c b/examples/ip_pipeline/cli.c index 20fbefb809..6aebae4207 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; -- 2.20.1