1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

skip empty lines in the public addresses file, not skip all non-empty

lines

(This used to be ctdb commit dc108adada33bb713f71a2859eda3b439ed0cd1a)
This commit is contained in:
Ronnie Sahlberg 2008-10-07 19:34:34 +11:00
parent 374906860c
commit 3411e98e14

View File

@ -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");