summaryrefslogtreecommitdiff
path: root/source4/lib/registry
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/registry')
-rw-r--r--source4/lib/registry/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/registry/util.c b/source4/lib/registry/util.c
index 47568b135e..91d1095f4c 100644
--- a/source4/lib/registry/util.c
+++ b/source4/lib/registry/util.c
@@ -265,6 +265,8 @@ WERROR reg_key_add_abs(TALLOC_CTX *mem_ctx, struct registry_context *ctx,
char *n;
WERROR error;
+ *result = NULL;
+
if (!strchr(path, '\\')) {
return WERR_ALREADY_EXISTS;
}