cmocka: Initialize group_state in _cmocka_run_group_tests()
authorAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 14:34:23 +0000 (15:34 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 10 Feb 2015 14:49:30 +0000 (15:49 +0100)
CID: #1268623

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
src/cmocka.c

index c0a1bcf..124e0b8 100644 (file)
@@ -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;