diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/syscalls/linux/udp_socket.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/syscalls/linux/udp_socket.cc b/test/syscalls/linux/udp_socket.cc index 50f589708..16eeeb5c6 100644 --- a/test/syscalls/linux/udp_socket.cc +++ b/test/syscalls/linux/udp_socket.cc @@ -2131,8 +2131,8 @@ TEST(UdpInet6SocketTest, ConnectInet4Sockaddr) { reinterpret_cast<const struct sockaddr*>(&connect_sockaddr), sizeof(sockaddr_in)), SyscallSucceeds()); - socklen_t len; sockaddr_storage sockname; + socklen_t len = sizeof(sockaddr_storage); ASSERT_THAT(getsockname(sock_.get(), reinterpret_cast<struct sockaddr*>(&sockname), &len), SyscallSucceeds()); |