summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-01-07 14:11:25 -0600
committerStefan Metzmacher <metze@samba.org>2008-01-07 08:18:06 -0600
commit7f8276b06d5000d12c0d64167853a033b924af32 (patch)
tree2a5841cb1d3910a841ea1337d82465b6ef2acd45 /source4/lib/registry/tools
parentff1017b1426a7620618ca3b5e2b4cd5cdac3dcd2 (diff)
downloadsamba-7f8276b06d5000d12c0d64167853a033b924af32.tar.gz
samba-7f8276b06d5000d12c0d64167853a033b924af32.tar.bz2
samba-7f8276b06d5000d12c0d64167853a033b924af32.zip
r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431.
(This used to be commit 846876ad32dc86fe7c367db084e76c670c61b389)
Diffstat (limited to 'source4/lib/registry/tools')
-rw-r--r--source4/lib/registry/tools/common.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/lib/registry/tools/common.c b/source4/lib/registry/tools/common.c
index 29e96475e6..cec0f8b906 100644
--- a/source4/lib/registry/tools/common.c
+++ b/source4/lib/registry/tools/common.c
@@ -27,7 +27,7 @@ struct registry_context *reg_common_open_remote(const char *remote,
struct loadparm_context *lp_ctx,
struct cli_credentials *creds)
{
- struct registry_context *h;
+ struct registry_context *h = NULL;
WERROR error;
error = reg_open_remote(&h, NULL, creds, lp_ctx, remote, NULL);
@@ -46,7 +46,7 @@ struct registry_key *reg_common_open_file(const char *path,
struct cli_credentials *creds)
{
struct hive_key *hive_root;
- struct registry_context *h;
+ struct registry_context *h = NULL;
WERROR error;
error = reg_open_hive(NULL, path, NULL, creds, lp_ctx, &hive_root);
@@ -70,7 +70,7 @@ struct registry_key *reg_common_open_file(const char *path,
struct registry_context *reg_common_open_local(struct cli_credentials *creds, struct loadparm_context *lp_ctx)
{
WERROR error;
- struct registry_context *h;
+ struct registry_context *h = NULL;
error = reg_open_samba(NULL, &h, lp_ctx, NULL, creds);