From 640cecab195e378da6d661d860477ffe531b76cd Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 23 Apr 2012 15:29:41 +0200 Subject: [PATCH] s3:registry: untangle assignment from check in regkey_open_onelevel() Signed-off-by: Andreas Schneider --- source3/registry/reg_api.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c index 7ae84ed5f06..0be1231b804 100644 --- a/source3/registry/reg_api.c +++ b/source3/registry/reg_api.c @@ -152,7 +152,8 @@ static WERROR regkey_open_onelevel(TALLOC_CTX *mem_ctx, goto done; } - if ( !(W_ERROR_IS_OK(result = regdb_open())) ) { + result = regdb_open(); + if (!(W_ERROR_IS_OK(result))) { goto done; } -- 2.11.4.GIT