From 02a224d3bf777ef5b82b6c4f69231e6430d283bc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 8 Apr 2006 02:47:42 +0000 Subject: r14978: fixed a print of NULL (This used to be commit bf867dc789dc966864223d8fdc52e093ccacf181) --- source4/lib/registry/tools/regtree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/lib/registry') 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("\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"); -- cgit