examples/pipeline: fix build

This patch fixes the following build failure seen on Ubuntu 16.04
with gcc 5.4.0 because of uninitialized variable:
  [..]
  examples/pipeline/cli.c:2853:9: error: 'session_id' may be used
    uninitialized in this function [-Werror=maybe-uninitialized]
  [..]

Fixes: 172254555f ("examples/pipeline: support packet mirroring")

Signed-off-by: Ali Alnubani <alialnu@nvidia.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
This commit is contained in:
Ali Alnubani 2022-06-02 15:34:12 +03:00 committed by Thomas Monjalon
parent 94b0f04dc0
commit 77dd857d30

View File

@ -2782,7 +2782,7 @@ cmd_pipeline_mirror_session(char **tokens,
{
struct rte_swx_pipeline_mirroring_session_params params;
struct pipeline *p;
uint32_t session_id;
uint32_t session_id = 0;
int status;
if (n_tokens != 11) {