mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 11:09:34 -05:00
Cleanup a while() loop.
This commit is contained in:
parent
e48861cf78
commit
5d8f2b8ba6
1 changed files with 1 additions and 4 deletions
|
|
@ -43,12 +43,9 @@ int bdb_last_id( BackendDB *be, DB_TXN *tid )
|
|||
rc = bdb->bi_id2entry->bdi_db->cursor( bdb->bi_id2entry->bdi_db,
|
||||
tid, &cursor, 0 );
|
||||
|
||||
while (rc == 0) {
|
||||
if (rc == 0) {
|
||||
rc = cursor->c_get(cursor, &key, &data, DB_LAST);
|
||||
cursor->c_close(cursor);
|
||||
if (rc != 0)
|
||||
break;
|
||||
break;
|
||||
}
|
||||
|
||||
switch(rc) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue