X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Finet.h;fp=source%2Fnet%2Finet.h;h=517b111b42a71e386ca1c692293f1632733006f8;hb=6625cf0e574406425c35d33110f8d99617e902df;hp=67bb6100b66005191d923d3a4210a9ea82d4cd79;hpb=92e8064d9f43ca3e28ce9832cfe475034ab98704;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); }