From: Pierangelo Masarati Date: Wed, 23 Oct 2002 14:11:02 +0000 (+0000) Subject: prevent use of uninitialized var X-Git-Tag: NO_SLAP_OP_BLOCKS~867 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=456a561b65ad8e2a41e20662707f30df80da1e2f;p=openldap prevent use of uninitialized var --- diff --git a/servers/slapd/back-monitor/search.c b/servers/slapd/back-monitor/search.c index 800ada5dc0..2795ee7be1 100644 --- a/servers/slapd/back-monitor/search.c +++ b/servers/slapd/back-monitor/search.c @@ -152,7 +152,7 @@ monitor_back_search( ) { struct monitorinfo *mi = (struct monitorinfo *) be->be_private; - int rc; + int rc = LDAP_SUCCESS; Entry *e, *matched = NULL; int nentries = 0; @@ -174,7 +174,7 @@ monitor_back_search( monitor_cache_release( mi, matched ); } - return( 0 ); + return( rc ); } nentries = 0;