From: Andrew Tridgell Date: Sat, 9 Jun 2007 23:54:27 +0000 (+1000) Subject: fixed valgrind error X-Git-Tag: tevent-0.9.20~348^2~2505 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=dc29399f6a3926b9b356ae05ef03b77337582865;p=thirdparty%2Fsamba.git fixed valgrind error (This used to be ctdb commit 77de040539ba0c5b10f94aec9d286c6d1f2be15f) --- diff --git a/ctdb/takeover/ctdb_takeover.c b/ctdb/takeover/ctdb_takeover.c index a439b855ba2..4adb8a0643f 100644 --- a/ctdb/takeover/ctdb_takeover.c +++ b/ctdb/takeover/ctdb_takeover.c @@ -437,6 +437,8 @@ int ctdb_takeover_run(struct ctdb_context *ctdb, struct ctdb_node_map *nodemap) int ret; struct ctdb_public_ip ip; + ZERO_STRUCT(ip); + /* Work out which node will look after each public IP. * takeover_node cycles over the nodes and is incremented each time a * node has been assigned to take over for another node.