X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=test%2Fcmd_ut.c;h=a3a9d49f7ec8a71bf34550ec8e16c2534ef69940;hb=1390c400846cf44b70f095ffd71306244f4cde0a;hp=400719e7b67935af9c885cc53d44fbcbfa199fd8;hpb=3e99c183739afe698df8a4ba813940c94379095b;p=oweals%2Fu-boot.git diff --git a/test/cmd_ut.c b/test/cmd_ut.c index 400719e7b6..a3a9d49f7e 100644 --- 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))