From: Michael Adam Date: Sun, 13 Apr 2008 11:41:39 +0000 (+0200) Subject: registry cachehook: compare cache_tree against NULL, not 0. X-Git-Tag: samba-3.3.0pre1~2708 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bfc0be55f2a436a9c687ab6ad86e704fcb753d6;p=thirdparty%2Fsamba.git registry cachehook: compare cache_tree against NULL, not 0. Michael --- diff --git a/source/registry/reg_cachehook.c b/source/registry/reg_cachehook.c index eb2884fc26b..bfdc0de5f57 100644 --- a/source/registry/reg_cachehook.c +++ b/source/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));