From b388a2a4406449133abafed2d31ea9e2f8e20227 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser Date: Mon, 5 Jul 2021 16:36:53 +0200 Subject: [PATCH] unittests/tests-ipv4_addr: test_ipv4_addr_to_str__addr_NULL(): zero `a` --- tests/unittests/tests-ipv4_addr/tests-ipv4_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.c b/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.c index 5bf790dd76..1fa1538045 100644 --- a/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.c +++ b/tests/unittests/tests-ipv4_addr/tests-ipv4_addr.c @@ -54,7 +54,7 @@ static void test_ipv4_addr_to_str__addr_NULL(void) static void test_ipv4_addr_to_str__result_NULL(void) { - ipv4_addr_t a; + ipv4_addr_t a = {0}; TEST_ASSERT_NULL(ipv4_addr_to_str(NULL, &a, IPV4_ADDR_MAX_STR_LEN)); }