diff options
Diffstat (limited to 'src/socket.h')
-rw-r--r-- | src/socket.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/socket.h b/src/socket.h index 8d1ad70ff..77ce31921 100644 --- a/src/socket.h +++ b/src/socket.h @@ -103,13 +103,13 @@ public: void print(std::ostream *s) const; std::string serializeString() const; private: - unsigned int m_addr_family; + unsigned int m_addr_family = 0; union { struct sockaddr_in ipv4; struct sockaddr_in6 ipv6; } m_address; - u16 m_port; // Port is separate from sockaddr structures + u16 m_port = 0; // Port is separate from sockaddr structures }; class UDPSocket |