1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

Merge pull request #16614 from kaspar030/fix_tests-ipv4_addr

unittests/tests-ipv?_addr: fix some uninitialized variable bugs
This commit is contained in:
Martine Lenders 2021-07-05 19:04:37 +02:00 committed by GitHub
commit 42deae8d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ static void test_ipv4_addr_to_str__addr_NULL(void)
static void test_ipv4_addr_to_str__result_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)); TEST_ASSERT_NULL(ipv4_addr_to_str(NULL, &a, IPV4_ADDR_MAX_STR_LEN));
} }

View File

@ -826,7 +826,7 @@ static void test_ipv6_addr_to_str__addr_NULL(void)
static void test_ipv6_addr_to_str__result_NULL(void) static void test_ipv6_addr_to_str__result_NULL(void)
{ {
ipv6_addr_t a; ipv6_addr_t a = {0};
TEST_ASSERT_NULL(ipv6_addr_to_str(NULL, &a, IPV6_ADDR_MAX_STR_LEN)); TEST_ASSERT_NULL(ipv6_addr_to_str(NULL, &a, IPV6_ADDR_MAX_STR_LEN));
} }