summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-22 16:32:41 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:26 -0500
commitab5cbd881307456881b04d13d13e7edfee8e366c (patch)
tree1435893eb92b0f3a0992714f5b0e6ab3db3e7633
parenta26f1f12b39c162a075305da5be9571330928fb6 (diff)
downloadsamba-ab5cbd881307456881b04d13d13e7edfee8e366c.tar.gz
samba-ab5cbd881307456881b04d13d13e7edfee8e366c.tar.bz2
samba-ab5cbd881307456881b04d13d13e7edfee8e366c.zip
r15810: Fix uninitialized variable error, caught by the IBM checker.
(This used to be commit 1354333fd192e83242e6618458704c1820efac49)
-rw-r--r--source4/lib/registry/tools/regtree.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c
index dae8c389c2..e606e09add 100644
--- a/source4/lib/registry/tools/regtree.c
+++ b/source4/lib/registry/tools/regtree.c
@@ -122,7 +122,7 @@ int main(int argc, char **argv)
error = WERR_OK;
- if (!h) {
+ if (root != NULL) {
print_tree(0, root, fullpath, no_values);
} else {
for(i = 0; reg_predefined_keys[i].handle; i++) {
@@ -131,6 +131,7 @@ int main(int argc, char **argv)
fprintf(stderr, "Skipping %s\n", reg_predefined_keys[i].name);
continue;
}
+ SMB_ASSERT(root);
print_tree(0, root, fullpath, no_values);
}
}