From ab5cbd881307456881b04d13d13e7edfee8e366c Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 22 May 2006 16:32:41 +0000 Subject: r15810: Fix uninitialized variable error, caught by the IBM checker. (This used to be commit 1354333fd192e83242e6618458704c1820efac49) --- source4/lib/registry/tools/regtree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source4/lib/registry/tools/regtree.c') 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); } } -- cgit