diff options
Diffstat (limited to 'lib/rpmdb.c')
-rw-r--r-- | lib/rpmdb.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rpmdb.c b/lib/rpmdb.c index e58de353b..dc6d7a71f 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -2048,10 +2048,9 @@ rpmdbMatchIterator rpmdbInitIterator(rpmdb db, rpmDbiTagVal rpmtag, /* get all entries from index */ xx = dbiCopen(dbi, &dbcursor, 0); - while (rc==0) { + while ((rc = dbiGet(dbi, dbcursor, &key, &data, DB_NEXT)) == 0) { dbiIndexSet newset = NULL; - rc = dbiGet(dbi, dbcursor, &key, &data, DB_NEXT); (void) dbt2set(dbi, &data, &newset); if (set == NULL) { set = newset; |