From 318a4ab9d75153bba801a156ac4840d249cf5cb2 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Fri, 27 Feb 2009 16:27:30 -0200 Subject: [PATCH] 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. --- src/linux/tipc.hpp | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.43.0