mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Silence "maybe uninitialized" warning (eprev after 0 iterations, cannot happen)
This commit is contained in:
parent
31d7966546
commit
ca563787ad
@ -378,8 +378,8 @@ bdb_idl_cache_put(
|
|||||||
|
|
||||||
if ( bdb->bi_idl_cache_size >= bdb->bi_idl_cache_max_size ) {
|
if ( bdb->bi_idl_cache_size >= bdb->bi_idl_cache_max_size ) {
|
||||||
int i;
|
int i;
|
||||||
ee = bdb->bi_idl_lru_tail;
|
eprev = bdb->bi_idl_lru_tail;
|
||||||
for ( i = 0; ee != NULL && i < 10; i++, ee = eprev ) {
|
for ( i = 0; (ee = eprev) != NULL && i < 10; i++ ) {
|
||||||
eprev = ee->idl_lru_prev;
|
eprev = ee->idl_lru_prev;
|
||||||
if ( eprev == ee ) {
|
if ( eprev == ee ) {
|
||||||
eprev = NULL;
|
eprev = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user