summaryrefslogtreecommitdiff
path: root/posix/tst-rfc3484-3.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/tst-rfc3484-3.c')
-rw-r--r--posix/tst-rfc3484-3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/posix/tst-rfc3484-3.c b/posix/tst-rfc3484-3.c
index 3aa4563c0c..8eba74e48e 100644
--- a/posix/tst-rfc3484-3.c
+++ b/posix/tst-rfc3484-3.c
@@ -113,6 +113,8 @@ do_test (void)
struct sockaddr_in so;
so.sin_family = AF_INET;
so.sin_addr.s_addr = h (0x0aa85f19);
+ /* Clear the rest of the structure to avoid warnings. */
+ memset (so.sin_zero, '\0', sizeof (so.sin_zero));
for (int i = 0; i < naddrs; ++i)
{