src: Initialize teardown_name to fix a build warning sandbox/kopasiak/upstream
authorAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Jun 2017 07:29:57 +0000 (09:29 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 22 Jun 2017 07:29:57 +0000 (09:29 +0200)
BUG #60

src/cmocka.c

index 69a8e82..f02e412 100644 (file)
@@ -3167,7 +3167,7 @@ int _run_group_tests(const UnitTest * const tests, const size_t number_of_tests)
     const char *setup_name;
     size_t num_setups = 0;
     UnitTestFunction teardown = NULL;
-    const char *teardown_name;
+    const char *teardown_name = NULL;
     size_t num_teardowns = 0;
     size_t current_test = 0;
     size_t i;