From: Leandro Lucarella Date: Fri, 27 Feb 2009 18:27:30 +0000 (-0200) Subject: Clean the tipc::sockaddr in the default constructor X-Git-Url: https://git.llucax.com/software/posixx.git/commitdiff_plain/318a4ab9d75153bba801a156ac4840d249cf5cb2 Clean the tipc::sockaddr in the default constructor The TIPC's sockaddr default constructor now sets the family to AF_TIPC and set all the other values to 0. --- diff --git a/src/linux/tipc.hpp b/src/linux/tipc.hpp index b16bc51..cb33335 100644 --- a/src/linux/tipc.hpp +++ b/src/linux/tipc.hpp @@ -641,6 +641,8 @@ posixx::linux::tipc::subscr_event::subscription() const throw () inline posixx::linux::tipc::sockaddr::sockaddr() throw () { + memset(this, 0, sizeof(*this)); + family = AF_TIPC; } inline