]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
registry cachehook: compare cache_tree against NULL, not 0.
authorMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 11:41:39 +0000 (13:41 +0200)
committerMichael Adam <obnox@samba.org>
Sun, 13 Apr 2008 13:33:47 +0000 (15:33 +0200)
Michael

source/registry/reg_cachehook.c

index eb2884fc26b2f35659044f66ee1e5b7d9d6c35b2..bfdc0de5f573932e8091745ed0fc97bdef13b5c1 100644 (file)
@@ -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));