]> git.sur5r.net Git - openldap/commitdiff
prevent use of uninitialized var
authorPierangelo Masarati <ando@openldap.org>
Wed, 23 Oct 2002 14:11:02 +0000 (14:11 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 23 Oct 2002 14:11:02 +0000 (14:11 +0000)
servers/slapd/back-monitor/search.c

index 800ada5dc0fd8473fc83d2c62f355543a6c53da1..2795ee7be1ba50b3c5fe8db7a1dc9242133987cb 100644 (file)
@@ -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;