summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-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);
}
}