From dc29399f6a3926b9b356ae05ef03b77337582865 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 10 Jun 2007 09:54:27 +1000 Subject: [PATCH] fixed valgrind error (This used to be ctdb commit 77de040539ba0c5b10f94aec9d286c6d1f2be15f) --- ctdb/takeover/ctdb_takeover.c | 2 ++ 1 file changed, 2 insertions(+) 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.