]> git.sur5r.net Git - openldap/commitdiff
fix logging and uninitialized value warning
authorPierangelo Masarati <ando@openldap.org>
Thu, 23 Jan 2003 22:55:01 +0000 (22:55 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 23 Jan 2003 22:55:01 +0000 (22:55 +0000)
servers/slapd/search.c

index 801600be90888cf5d723d2c7d1433cc3f2b100bb..720992c58b2e14f3792ffae16b837475651bdb78 100644 (file)
@@ -58,7 +58,7 @@ do_search(
        const char      *text;
        int                     manageDSAit;
 #ifdef LDAP_SLAPI
-       Slapi_PBlock    *pb;
+       Slapi_PBlock    *pb = NULL;
        char            **attrs = NULL;
 #endif
 
@@ -516,7 +516,7 @@ static int doSearchRewriteFNs( Backend *be, Slapi_PBlock *pb, Filter **filter, s
 #ifdef NEW_LOGGING
                LDAP_LOG( OPERATION, ARGS, 
                        "doSearchRewriteFNs: after compute_rewrite_search filter: %s\n", 
-                       fstr->bv_len ? fstr->bv_val : "empty", 0 );
+                       fstr->bv_len ? fstr->bv_val : "empty", 0, 0 );
 #else
                Debug( LDAP_DEBUG_ARGS, "    after compute_rewrite_search filter: %s\n",
                        fstr->bv_len ? fstr->bv_val : "empty", 0, 0 );