summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-08 02:47:42 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:49 -0500
commit02a224d3bf777ef5b82b6c4f69231e6430d283bc (patch)
tree6ceed0ffc1ef04431a194ca6f07a9151cd06fa35
parent14594c7b85e661aa8370103089fb817f2842d892 (diff)
downloadsamba-02a224d3bf777ef5b82b6c4f69231e6430d283bc.tar.gz
samba-02a224d3bf777ef5b82b6c4f69231e6430d283bc.tar.bz2
samba-02a224d3bf777ef5b82b6c4f69231e6430d283bc.zip
r14978: fixed a print of NULL
(This used to be commit bf867dc789dc966864223d8fdc52e093ccacf181)
-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");