From 2ffe46e24d369fabf2d1fe44dd91025466fcc502 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 13 Apr 2008 13:41:39 +0200 Subject: registry cachehook: compare cache_tree against NULL, not 0. Michael (This used to be commit 4bfc0be55f2a436a9c687ab6ad86e704fcb753d6) --- source3/registry/reg_cachehook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/registry') diff --git a/source3/registry/reg_cachehook.c b/source3/registry/reg_cachehook.c index eb2884fc26..bfdc0de5f5 100644 --- a/source3/registry/reg_cachehook.c +++ b/source3/registry/reg_cachehook.c @@ -58,7 +58,7 @@ bool reghook_cache_init( void ) { if (cache_tree == NULL) { cache_tree = pathtree_init(®db_ops, NULL); - if (cache_tree !=0) { + if (cache_tree != NULL) { DEBUG(10, ("reghook_cache_init: new tree with default " "ops %p for key [%s]\n", (void *)®db_ops, KEY_TREE_ROOT)); -- cgit