Spdk/test/unit/lib/json/json_util.c
Daniel Verkamp 2c28fa5426 test/json_util_ut: assert that string is valid
Make sure the output.my_name pointer is not NULL before calling memcmp()
on it.  Fixes static analysis warning about a potential NULL pointer
dereference.

Change-Id: I85faf57c63b0760c4f90d9ee99f6d7e3df121211
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-on: https://review.gerrithub.io/369264
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
2017-07-12 18:13:23 -04:00
..
.gitignore test: move JSON library unit tests to test/unit 2017-06-20 13:46:07 -04:00
json_util_ut.c test/json_util_ut: assert that string is valid 2017-07-12 18:13:23 -04:00
Makefile test: move JSON library unit tests to test/unit 2017-06-20 13:46:07 -04:00