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:
parent
bdaa2bcc1d
commit
3b0b29bcb6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user