From 6858c83dc625ab2d4c02c702f8f5351805df0ae1 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Tue, 9 Jul 2019 14:13:13 +0000 Subject: [PATCH] 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 Reviewed-by: Gary Lockyer --- source3/lib/dbwrap/dbwrap_ctdb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index b487d10bddb..33558e442f3 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -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; }