examples/ip_pipeline: fix uninitialized KNI parameter
authorReshma Pattan <reshma.pattan@intel.com>
Wed, 18 Apr 2018 16:58:07 +0000 (17:58 +0100)
committerCristian Dumitrescu <cristian.dumitrescu@intel.com>
Tue, 8 May 2018 11:14:05 +0000 (13:14 +0200)
commit1d27b0f2c2346f9d8065706736848f16bb9f2c49
tree91cee0cfa80dcd12ec73c8b96482eefc928da472
parent84a27d8913ce1d8a36fc1168fc3cbf36526e7dee
examples/ip_pipeline: fix uninitialized KNI parameter

Using uninitialized value p.thread_id when calling kni_create.
Initialize the kni_params object to 0.

Coverity issue: 272569
Fixes: 9a408cc8ac ("examples/ip_pipeline: add KNI object")

Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
Reviewed-by: Jasvinder Singh <jasvinder.singh@intel.com>
examples/ip_pipeline/cli.c