X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Finet.h;h=517b111b42a71e386ca1c692293f1632733006f8;hb=667ae5c9d69dcfbd0a82d8abc8a221e25d4d4ca6;hp=67bb6100b66005191d923d3a4210a9ea82d4cd79;hpb=f97f21c17f24e1d426e5b5863676071a5809b185;p=libs%2Fnet.git diff --git a/source/net/inet.h b/source/net/inet.h index 67bb610..517b111 100644 --- a/source/net/inet.h +++ b/source/net/inet.h @@ -12,11 +12,11 @@ Address class for IPv4 sockets. class InetAddr: public SockAddr { private: - unsigned char addr[4]; - unsigned port; + unsigned char addr[4] = { }; + unsigned port = 0; public: - InetAddr(); + InetAddr() = default; InetAddr(const SysAddr &); InetAddr *copy() const override { return new InetAddr(*this); }