From 3411e98e14b3db290832ac4febaedc991b0e9ed1 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Tue, 7 Oct 2008 19:34:34 +1100 Subject: [PATCH] skip empty lines in the public addresses file, not skip all non-empty lines (This used to be ctdb commit dc108adada33bb713f71a2859eda3b439ed0cd1a) --- ctdb/server/ctdb_takeover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctdb/server/ctdb_takeover.c b/ctdb/server/ctdb_takeover.c index dcdaadaec13..483ab3c0aae 100644 --- a/ctdb/server/ctdb_takeover.c +++ b/ctdb/server/ctdb_takeover.c @@ -460,7 +460,7 @@ int ctdb_set_public_addresses(struct ctdb_context *ctdb, const char *alist) if (*line == '#') { continue; } - if (strcmp(line, "")) { + if (strcmp(line, "") == 0) { continue; } tok = strtok(line, " \t");