vcpkg/ports/cmocka/fix-uwp.patch
2019-05-01 15:19:12 -07:00

14 lines
500 B
Diff

diff --git a/src/cmocka.c b/src/cmocka.c
index 6bfc831..4c1c04b 100644
--- a/src/cmocka.c
+++ b/src/cmocka.c
@@ -3356,7 +3356,7 @@ int _run_tests(const UnitTest * const tests, const size_t number_of_tests) {
int _run_group_tests(const UnitTest * const tests, const size_t number_of_tests)
{
UnitTestFunction setup = NULL;
- const char *setup_name;
+ const char *setup_name = NULL;
size_t num_setups = 0;
UnitTestFunction teardown = NULL;
const char *teardown_name = NULL;