Bruce Richardson 17250a2aff app/testpmd: fix variable use before null check
The value returned from rte_eth_dev_tx_offload_name() function is used
for string comparison before being checked for NULL. Move the NULL check
up to be done first.

Coverity issue: 279438
Fixes: c73a9071877a ("app/testpmd: add commands to test new offload API")
Cc: stable@dpdk.org

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Rami Rosen <ramirose@gmail.com>
2019-04-23 00:15:10 +02:00
..
2019-04-11 14:27:32 +02:00
2019-04-11 14:27:32 +02:00
2019-04-05 17:45:22 +02:00
2019-04-05 17:45:22 +02:00
2018-11-05 15:01:25 +01:00
2018-12-21 16:22:40 +01:00
2019-04-19 14:51:54 +02:00