diff options
-rw-r--r-- | contrib/Socket.cpp | 3 | ||||
-rw-r--r-- | contrib/Socket.h | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp index cba2767..50a12ba 100644 --- a/contrib/Socket.cpp +++ b/contrib/Socket.cpp @@ -69,7 +69,8 @@ void InetAddress::resolveUdpDestination(const std::string& destination, int port UDPPacket::UDPPacket() { } UDPPacket::UDPPacket(size_t initSize) : - buffer(initSize) + buffer(initSize), + address() { } diff --git a/contrib/Socket.h b/contrib/Socket.h index c3c37e1..df80b08 100644 --- a/contrib/Socket.h +++ b/contrib/Socket.h @@ -50,7 +50,7 @@ namespace Socket { struct InetAddress { - struct sockaddr_storage addr; + struct sockaddr_storage addr = {}; struct sockaddr *as_sockaddr() { return reinterpret_cast<sockaddr*>(&addr); }; |