summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
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;
}