X-Git-Url: http://git.tdb.fi/?p=libs%2Fnet.git;a=blobdiff_plain;f=source%2Fnet%2Finet6.h;h=3b48a63fe089dc6733b722cd2c04f33f01adb325;hp=fb07eec52e2d2ff14dcaa551fff7eef38468a840;hb=6625cf0e574406425c35d33110f8d99617e902df;hpb=92e8064d9f43ca3e28ce9832cfe475034ab98704 diff --git a/source/net/inet6.h b/source/net/inet6.h index fb07eec..3b48a63 100644 --- a/source/net/inet6.h +++ b/source/net/inet6.h @@ -9,11 +9,11 @@ namespace Net { class Inet6Addr: public SockAddr { private: - unsigned char addr[16]; - unsigned port; + unsigned char addr[16] = { }; + unsigned port = 0; public: - Inet6Addr(); + Inet6Addr() = default; Inet6Addr(const SysAddr &); Inet6Addr *copy() const override { return new Inet6Addr(*this); }