From e690c0776fa4d3a475e9291c243be6141d54b4d4 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Mon, 22 Mar 2010 21:34:54 +0100 Subject: s4:registry - "util.c" - initialise "result" in "reg_key_add_abs" --- source4/lib/registry/util.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib/registry') 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; } -- cgit