]> git.sur5r.net Git - openldap/commitdiff
Fix uninitialized variables
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 1 Sep 1999 05:44:16 +0000 (05:44 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 1 Sep 1999 05:44:16 +0000 (05:44 +0000)
servers/slapd/backend.c
servers/slapd/search.c

index 396beff3f1ea237bace7ed76e18776f60c438d61..872d08776aba6a90ced62c43b92f470469bc33c2 100644 (file)
@@ -277,8 +277,6 @@ int backend_shutdown( Backend *be )
 
        /* close each backend database */
        for( i = 0; i < nBackendDB; i++ ) {
-               BackendInfo  *bi;
-
                if ( backendDB[i].bd_info->bi_db_close ) {
                        backendDB[i].bd_info->bi_db_close(
                                &backendDB[i] );
@@ -287,7 +285,7 @@ int backend_shutdown( Backend *be )
                if(rc != 0) {
                        Debug( LDAP_DEBUG_ANY,
                                "backend_close: bi_close %s failed!\n",
-                               bi->bi_type, 0, 0 );
+                               backendDB[i].be_type, 0, 0 );
                }
        }
 
index e2ecd1ad10f75d887ec524e65bdcf9592d218d72..c20c28035ec5643abe92564f3d252dcb18800d30 100644 (file)
@@ -125,6 +125,7 @@ do_search(
                        send_ldap_result( conn, op, err,
                                NULL, "Bad search filter", NULL, NULL );
                }
+               rc = -1;
                goto return_results;
        }