X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnet%2Finet6.h;h=d4455e5de360cb1642b18ba23d9403a9d039b5a8;hb=6057616e00a6792e219fab2ce958306e737faa67;hp=fb07eec52e2d2ff14dcaa551fff7eef38468a840;hpb=f97f21c17f24e1d426e5b5863676071a5809b185;p=libs%2Fnet.git diff --git a/source/net/inet6.h b/source/net/inet6.h index fb07eec..d4455e5 100644 --- a/source/net/inet6.h +++ b/source/net/inet6.h @@ -1,5 +1,5 @@ #ifndef MSP_NET_INET6_H_ -#define NSP_NET_INET6_H_ +#define MSP_NET_INET6_H_ #include "sockaddr.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); }