summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-10 14:34:23 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-10 14:49:30 (GMT)
commite0011bdcca0d4190a9708ddfd9d70464b2123330 (patch)
treea5f9001b866838b505ad06f2716e49b4ee5e2a08
parenta006e2e9a5773f1fdbdf4920621769833e00fe46 (diff)
downloadcmocka-e0011bdcca0d4190a9708ddfd9d70464b2123330.zip
cmocka-e0011bdcca0d4190a9708ddfd9d70464b2123330.tar.gz
cmocka-e0011bdcca0d4190a9708ddfd9d70464b2123330.tar.bz2
cmocka: Initialize group_state in _cmocka_run_group_tests()
CID: #1268623 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/cmocka.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmocka.c b/src/cmocka.c
index c0a1bcf..124e0b8 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -2527,7 +2527,7 @@ int _cmocka_run_group_tests(const char *group_name,
{
struct CMUnitTestState *cm_tests;
const ListNode *group_check_point = check_point_allocated_blocks();
- void *group_state;
+ void *group_state = NULL;
size_t total_failed = 0;
size_t total_passed = 0;
size_t total_executed = 0;