]> git.sur5r.net Git - openldap/commitdiff
Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen)
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 30 Nov 2009 14:00:18 +0000 (14:00 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 30 Nov 2009 14:00:18 +0000 (14:00 +0000)
servers/slapd/back-bdb/idl.c

index 93dc87d02edd1177dcaf2c8feb29cbb644709ec8..65df177dd9c7fcd28eab0e261b4279b765406778 100644 (file)
@@ -378,8 +378,8 @@ bdb_idl_cache_put(
 
        if ( bdb->bi_idl_cache_size >= bdb->bi_idl_cache_max_size ) {
                int i;
-               ee = bdb->bi_idl_lru_tail;
-               for ( i = 0; ee != NULL && i < 10; i++, ee = eprev ) {
+               eprev = bdb->bi_idl_lru_tail;
+               for ( i = 0; (ee = eprev) != NULL && i < 10; i++ ) {
                        eprev = ee->idl_lru_prev;
                        if ( eprev == ee ) {
                                eprev = NULL;