aboutsummaryrefslogtreecommitdiffstats
path: root/tests/libntp/netof.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/libntp/netof.c')
-rw-r--r--tests/libntp/netof.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libntp/netof.c b/tests/libntp/netof.c
index 59dd7098d2a7..be197cf18b8a 100644
--- a/tests/libntp/netof.c
+++ b/tests/libntp/netof.c
@@ -89,11 +89,13 @@ test_IPv6Address(void)
} } }; // 2001:0db8:85a3:08d3:0000:0000:0000:0000
sockaddr_u input;
+ memset(&input, 0, sizeof(input));
input.sa6.sin6_family = AF_INET6;
input.sa6.sin6_addr = input_address;
SET_PORT(&input, 3000);
sockaddr_u expected;
+ memset(&expected, 0, sizeof(expected));
expected.sa6.sin6_family = AF_INET6;
expected.sa6.sin6_addr = expected_address;
SET_PORT(&expected, 3000);