From 456a561b65ad8e2a41e20662707f30df80da1e2f Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 23 Oct 2002 14:11:02 +0000 Subject: [PATCH] prevent use of uninitialized var --- servers/slapd/back-monitor/search.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.39.5