summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2012-04-23 15:29:41 +0200
committerAndreas Schneider <asn@samba.org>2012-04-25 14:31:11 +0200
commit640cecab195e378da6d661d860477ffe531b76cd (patch)
tree9269cd07453ebd2af257c0d74ae77fa2f0ffbbb8 /source3/registry
parent22451f7f45c1f692dc9d40af0e6ce82666359390 (diff)
downloadsamba-640cecab195e378da6d661d860477ffe531b76cd.tar.gz
samba-640cecab195e378da6d661d860477ffe531b76cd.tar.bz2
samba-640cecab195e378da6d661d860477ffe531b76cd.zip
s3:registry: untangle assignment from check in regkey_open_onelevel()
Signed-off-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/registry/reg_api.c b/source3/registry/reg_api.c
index 7ae84ed5f0..0be1231b80 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;
}