]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
fixed valgrind error
authorAndrew Tridgell <tridge@samba.org>
Sat, 9 Jun 2007 23:54:27 +0000 (09:54 +1000)
committerAndrew Tridgell <tridge@samba.org>
Sat, 9 Jun 2007 23:54:27 +0000 (09:54 +1000)
(This used to be ctdb commit 77de040539ba0c5b10f94aec9d286c6d1f2be15f)

ctdb/takeover/ctdb_takeover.c

index a439b855ba2780671c254a418be3d6da75695a55..4adb8a0643f0d675bfec60b3fdf8089295a2b3ee 100644 (file)
@@ -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.