From: Pierangelo Masarati Date: Thu, 23 Jan 2003 22:55:01 +0000 (+0000) Subject: fix logging and uninitialized value warning X-Git-Tag: NO_SLAP_OP_BLOCKS~521 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8d9629e1ded0004334632d1c9679380ed24339b1;p=openldap fix logging and uninitialized value warning --- diff --git a/servers/slapd/search.c b/servers/slapd/search.c index 801600be90..720992c58b 100644 --- a/servers/slapd/search.c +++ b/servers/slapd/search.c @@ -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 );