--- tools/test-runner.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/test-runner.c b/tools/test-runner.c index 2dc19726..0226dd15 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -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; -- 2.13.6