t-runner: Fix possible assignment of NULL pointer
This commit is contained in:
parent
43efadcf92
commit
e859e98869
|
@ -2674,7 +2674,8 @@ static void run_tests(void)
|
|||
test_action_str = ptr + 4;
|
||||
|
||||
ptr = strchr(test_action_str, '\'');
|
||||
*ptr = '\0';
|
||||
if (ptr)
|
||||
*ptr = '\0';
|
||||
|
||||
if (!strcmp(test_action_str, "virtual"))
|
||||
native_hw = false;
|
||||
|
|
Loading…
Reference in New Issue