From c0c9dcef88d94fd8320068316a10dfab3d289887 Mon Sep 17 00:00:00 2001 From: Cristian Dumitrescu Date: Tue, 6 Oct 2020 21:37:51 +0100 Subject: [PATCH] pipeline: fix argument check Coverity issue: 362789 Fixes: 3ca60ceed7 ("pipeline: add SWX pipeline specification file") Signed-off-by: Cristian Dumitrescu --- lib/librte_pipeline/rte_swx_pipeline_spec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pipeline/rte_swx_pipeline_spec.c b/lib/librte_pipeline/rte_swx_pipeline_spec.c index 95de8f983d..06e1ab4380 100644 --- a/lib/librte_pipeline/rte_swx_pipeline_spec.c +++ b/lib/librte_pipeline/rte_swx_pipeline_spec.c @@ -1064,7 +1064,7 @@ rte_swx_pipeline_build_from_spec(struct rte_swx_pipeline *p, goto error; } - if (!p) { + if (!spec) { if (err_line) *err_line = 0; if (err_msg) -- 2.20.1