summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-06-22 07:29:57 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2017-06-22 07:29:57 (GMT)
commit4b128f559cc7c7c51804248aadd70eb548c649b2 (patch)
treecc5bd0141f7e85e28b993d0b1114c2952e3c398a
parent5f61d2f188b0254f6ad74f9d9f84705923ece1fd (diff)
downloadcmocka-4b128f559cc7c7c51804248aadd70eb548c649b2.zip
cmocka-4b128f559cc7c7c51804248aadd70eb548c649b2.tar.gz
cmocka-4b128f559cc7c7c51804248aadd70eb548c649b2.tar.bz2
src: Initialize teardown_name to fix a build warningupstreamsandbox/kopasiak/upstream
BUG #60
-rw-r--r--src/cmocka.c2
1 files changed, 1 insertions, 1 deletions
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;