pipeline: fix argument check
[dpdk.git] / lib / librte_pipeline / rte_swx_pipeline_spec.c
index 95de8f9..06e1ab4 100644 (file)
@@ -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)