examples/pipeline: fix CLI parsing crash
authorCristian Dumitrescu <cristian.dumitrescu@intel.com>
Thu, 28 Jan 2021 19:12:39 +0000 (19:12 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 29 Jan 2021 15:20:58 +0000 (16:20 +0100)
commit821848f5192c6b6be954fa9f04c0e6a470cff2b6
tree3f32143d0d01a3222022b561878feed0f3c27c7d
parent45eb6a1dfededc2a648364a496d480edb8023650
examples/pipeline: fix CLI parsing crash

Cannot dereference pointer for token[1] unless valid.

Fixes: 5074e1d551 ("examples/pipeline: add configuration commands")
Cc: stable@dpdk.org
Signed-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/pipeline/cli.c