summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/registry/tools/regtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c
index fae2c6eacf..106039361a 100644
--- a/source4/lib/registry/tools/regtree.c
+++ b/source4/lib/registry/tools/regtree.c
@@ -42,7 +42,7 @@ static void print_tree(int l, struct registry_key *p, int fullpath, int novals)
} else {
if(!p->name) printf("<No Name>\n");
if(fullpath) printf("%s\n", p->path);
- else printf("%s\n", p->name);
+ else printf("%s\n", p->name?p->name:"(NULL)");
}
mem_ctx = talloc_init("print_tree");