cmocka: Add missing null check in _expect_check()
This commit is contained in:
parent
9e6ab12ae2
commit
de511ab272
|
@ -1150,6 +1150,7 @@ void _expect_check(
|
|||
CheckParameterEvent * const check =
|
||||
event ? event : (CheckParameterEvent*)malloc(sizeof(*check));
|
||||
const char* symbols[] = {function, parameter};
|
||||
assert_non_null(check);
|
||||
check->parameter_name = parameter;
|
||||
check->check_value = check_function;
|
||||
check->check_value_data = check_data;
|
||||
|
|
Loading…
Reference in New Issue