From 4b128f559cc7c7c51804248aadd70eb548c649b2 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 22 Jun 2017 09:29:57 +0200 Subject: src: Initialize teardown_name to fix a build warning BUG #60 --- src/cmocka.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmocka.c b/src/cmocka.c index 69a8e82..f02e412 100644 --- a/src/cmocka.c +++ b/src/cmocka.c @@ -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; -- cgit v1.2.3