From 7ba2c62fb3b4d78bdd11591a009fdbd195d2761c Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 19 Apr 2011 13:42:46 +0300 Subject: [PATCH] Ignore error codes in rpmdbIndexIteratorFree() - Similarly to commit b35081600135b4a3d54fa7e832125a89d3bdee48, we can't do anything about dbiCclose() failure here, just ignore. --- lib/rpmdb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/rpmdb.c b/lib/rpmdb.c index 728dab1..b6007fa 100644 --- a/lib/rpmdb.c +++ b/lib/rpmdb.c @@ -2267,7 +2267,6 @@ unsigned int rpmdbIndexIteratorTagNum(rpmdbIndexIterator ii, unsigned int nr) rpmdbIndexIterator rpmdbIndexIteratorFree(rpmdbIndexIterator ii) { rpmdbIndexIterator * prev, next; - int xx; if (ii == NULL) return ii; @@ -2281,7 +2280,7 @@ rpmdbIndexIterator rpmdbIndexIteratorFree(rpmdbIndexIterator ii) } if (ii->ii_dbc) - xx = dbiCclose(ii->ii_dbi, ii->ii_dbc, 0); + dbiCclose(ii->ii_dbi, ii->ii_dbc, 0); ii->ii_dbc = NULL; ii->ii_dbi = NULL; rpmdbClose(ii->ii_db); -- 2.7.4