tools/ctdb: Stop return value from being clobbered in control_lvsmaster()
authorMartin Schwenke <martin@meltin.net>
Wed, 18 Sep 2013 03:40:52 +0000 (13:40 +1000)
committerAmitay Isaacs <amitay@gmail.com>
Fri, 4 Oct 2013 05:15:35 +0000 (15:15 +1000)
commit3296559c43e70f755fcf2c06677891e0319c8142
tree7c365ca7f85f354cf67be6d9fb9f004985152b88
parent5619754343003016ede27014567dbb4701f97928
tools/ctdb: Stop return value from being clobbered in control_lvsmaster()

ret is initialised too early and is clobbered by the call to
ctdb_ctrl_getcapabilities().  Initialising it later means that the
function returns -1 when no LVS master is found.

Signed-off-by: Martin Schwenke <martin@meltin.net>
tools/ctdb.c