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

ctdb-takeover: Fix CID 1398169 Unchecked return value

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: David Disseldorp <ddiss@samba.org>
This commit is contained in:
Martin Schwenke 2016-12-28 06:14:56 +11:00 committed by David Disseldorp
parent bdaa2bcc1d
commit 3b0b29bcb6

View File

@ -1164,7 +1164,12 @@ int main(int argc, const char *argv[])
}
}
logging_init(mem_ctx, NULL, NULL, "ctdb-takeover");
ret = logging_init(mem_ctx, NULL, NULL, "ctdb-takeover");
if (ret != 0) {
fprintf(stderr,
"ctdb-takeover: Unable to initialize logging\n");
goto done;
}
ev = tevent_context_init(mem_ctx);
if (ev == NULL) {