aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-09-26 12:48:40 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-09-26 12:50:03 +0200
commit173956268c652782e53e5fc300d9af3b5e02462b (patch)
tree7ffe5db4f065e1e3993935c5858422cbdb53e64e /src
parenteefa1b7dec5d8e2162a025bfbb2c536796f22de5 (diff)
downloadcmocka-173956268c652782e53e5fc300d9af3b5e02462b.tar.gz
cmocka-173956268c652782e53e5fc300d9af3b5e02462b.tar.xz
cmocka-173956268c652782e53e5fc300d9af3b5e02462b.zip
cmocka: Initialize the group_state
Diffstat (limited to 'src')
-rw-r--r--src/cmocka.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index fc26acc..2a02406 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -3290,7 +3290,9 @@ int _run_group_tests(const UnitTest * const tests, const size_t number_of_tests)
const ListNode * const check_point = check_point_allocated_blocks();
const char **failed_names = NULL;
void **current_state = NULL;
- TestState group_state;
+ TestState group_state = {
+ .check_point = NULL,
+ };
if (number_of_tests == 0) {
return -1;