test/compress: fix some checks
authorAdam Dybkowski <adamx.dybkowski@intel.com>
Tue, 23 Jul 2019 10:53:49 +0000 (12:53 +0200)
committerAkhil Goyal <akhil.goyal@nxp.com>
Fri, 26 Jul 2019 09:21:45 +0000 (11:21 +0200)
commit98af2ecacd19897591f13dc73e73422d2f2079a2
tree4f5260bcfaf00b43bd6625d55918a27d3c0e6340
parent83a124fb73c50b051ee20ef6b1998c81be7e65df
test/compress: fix some checks

CID 340857: Null pointer dereferences (NULL_RETURNS)
CID 340856: (CONSTANT_EXPRESSION_RESULT)

Coverity issue: 340856, 340857
Fixes: 3be12ea52ad8 ("test/compress: improve debug trace setup")
Cc: stable@dpdk.org
Signed-off-by: Adam Dybkowski <adamx.dybkowski@intel.com>
Acked-by: Fiona Trahe <fiona.trahe@intel.com>
app/test/test_compressdev.c