summaryrefslogtreecommitdiff
path: root/cmd/eeprom.c
diff options
context:
space:
mode:
authorPhilippe Reynes <philippe.reynes@softathome.com>2020-01-09 17:34:02 +0100
committerTom Rini <trini@konsulko.com>2020-01-10 14:18:26 -0500
commit3f05f087c37ec6b408dfd3b0a864c59749b5b8e1 (patch)
tree83dce226b2519be2923f7dccc9ea9820512f651f /cmd/eeprom.c
parent53dc8ae66c5ca8dac65bd6f51c0cbb8b0d22aa2a (diff)
test/cmd_ut.c: fix cmd_ut_category
In the function cmd_ut_category, the prefix is used with the function strncmp to know if the prefix should be removed from the test name, even if the prefix is NULL. To avoid this issue, we consider that a prefix NULL mean no prefix. So we only try to remove the prefix from the test_name if the prefix is not NULL, then we avoid to call the function strncmp with a NULL prefix. Reported-by: Coverity CID 281110 Fixes: 4ad4edfe ("cmd_ut: add a parameter prefix to the function cmd_ut_category") Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
Diffstat (limited to 'cmd/eeprom.c')
0 files changed, 0 insertions, 0 deletions