projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch '2020-04-10-gitlab-travis-gcc9' into next
[oweals/u-boot.git]
/
test
/
cmd_ut.c
diff --git
a/test/cmd_ut.c
b/test/cmd_ut.c
index 400719e7b67935af9c885cc53d44fbcbfa199fd8..a3a9d49f7ec8a71bf34550ec8e16c2534ef69940 100644
(file)
--- a/
test/cmd_ut.c
+++ b/
test/cmd_ut.c
@@
-26,7
+26,7
@@
int cmd_ut_category(const char *name, const char *prefix,
const char *test_name = test->name;
/* Remove the prefix */
- if (!strncmp(test_name, prefix, prefix_len))
+ if (
prefix &&
!strncmp(test_name, prefix, prefix_len))
test_name += prefix_len;
if (argc > 1 && strcmp(argv[1], test_name))