summaryrefslogtreecommitdiff
path: root/source3/registry
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-04-13 13:41:39 +0200
committerMichael Adam <obnox@samba.org>2008-04-13 15:33:47 +0200
commit2ffe46e24d369fabf2d1fe44dd91025466fcc502 (patch)
tree4679516b4ebb412497cd87685ed690e282393312 /source3/registry
parent26a5652f6d1dc7ae01a472beabf032faba07c8d2 (diff)
downloadsamba-2ffe46e24d369fabf2d1fe44dd91025466fcc502.tar.gz
samba-2ffe46e24d369fabf2d1fe44dd91025466fcc502.tar.bz2
samba-2ffe46e24d369fabf2d1fe44dd91025466fcc502.zip
registry cachehook: compare cache_tree against NULL, not 0.
Michael (This used to be commit 4bfc0be55f2a436a9c687ab6ad86e704fcb753d6)
Diffstat (limited to 'source3/registry')
-rw-r--r--source3/registry/reg_cachehook.c2
1 files changed, 1 insertions, 1 deletions
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(&regdb_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 *)&regdb_ops,
KEY_TREE_ROOT));