mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +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:
commit
42deae8d7e
@ -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));
|
||||
}
|
||||
|
@ -826,7 +826,7 @@ static void test_ipv6_addr_to_str__addr_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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user