From: Hallvard Furuseth Date: Mon, 30 Nov 2009 14:00:18 +0000 (+0000) Subject: Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen) X-Git-Tag: ACLCHECK_0~40 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ca563787ad13ee7687ec861162fe0b3ec9ed2d36;p=openldap Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen) --- diff --git a/servers/slapd/back-bdb/idl.c b/servers/slapd/back-bdb/idl.c index 93dc87d02e..65df177dd9 100644 --- a/servers/slapd/back-bdb/idl.c +++ b/servers/slapd/back-bdb/idl.c @@ -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;