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 69a8e82ed831bf4f71e3792470ac616d31c8a41a..f02e412614e4fb837fa862e7d26bc5a68f9ee533 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;