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

s3/lib/dwrap: clang: Fix 'Value stored to 'ret' is never read'

Fixes:

source3/lib/dbwrap/dbwrap_ctdb.c:95:2: warning: Value stored to 'ret' is never read <--[clang]
        ret = ctdbd_init_connection(mem_ctx,
        ^     ~~~~~~

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Noel Power 2019-07-09 14:13:13 +00:00 committed by Gary Lockyer
parent 849ffbc825
commit 6858c83dc6

View File

@ -98,7 +98,7 @@ static int ctdb_async_ctx_init_internal(TALLOC_CTX *mem_ctx,
&ctdb_async_ctx.async_conn);
unbecome_root();
if (ctdb_async_ctx.async_conn == NULL) {
if (ret != 0 || ctdb_async_ctx.async_conn == NULL) {
DBG_ERR("ctdbd_init_connection failed\n");
return EIO;
}