Skip to content
Snippets Groups Projects
Commit 5d8f2b8b authored by Howard Chu's avatar Howard Chu
Browse files

Cleanup a while() loop.

parent e48861cf
Branches
Tags
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment