mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
t-runner: Fix possible assignment of NULL pointer
This commit is contained in:
parent
43efadcf92
commit
e859e98869
@ -2674,6 +2674,7 @@ static void run_tests(void)
|
|||||||
test_action_str = ptr + 4;
|
test_action_str = ptr + 4;
|
||||||
|
|
||||||
ptr = strchr(test_action_str, '\'');
|
ptr = strchr(test_action_str, '\'');
|
||||||
|
if (ptr)
|
||||||
*ptr = '\0';
|
*ptr = '\0';
|
||||||
|
|
||||||
if (!strcmp(test_action_str, "virtual"))
|
if (!strcmp(test_action_str, "virtual"))
|
||||||
|
Loading…
Reference in New Issue
Block a user