From: Ronnie Sahlberg Date: Wed, 15 Aug 2007 02:34:41 +0000 (+1000) Subject: zero out the sa struct to supress a valgrind error X-Git-Tag: tevent-0.9.20~348^2~2441^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6fc0653b97c7c9f509147ffb0de303d50cee32de;p=thirdparty%2Fsamba.git zero out the sa struct to supress a valgrind error (This used to be ctdb commit b17ff60ad4c5fac76d3f77dacb10c30ae564bf09) --- diff --git a/ctdb/common/system_linux.c b/ctdb/common/system_linux.c index 2262ccdd575..2b054cd4460 100644 --- a/ctdb/common/system_linux.c +++ b/ctdb/common/system_linux.c @@ -45,6 +45,8 @@ int ctdb_sys_send_arp(const struct sockaddr_in *saddr, const char *iface) unsigned char buffer[64]; /*minimum eth frame size */ char *ptr; + ZERO_STRUCT(sa); + /* for now, we only handle AF_INET addresses */ if (saddr->sin_family != AF_INET) { DEBUG(0,(__location__ " not an ipv4 address (family is %u)\n", saddr->sin_family));