summaryrefslogtreecommitdiff
path: root/lib/libalpm
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2011-04-02 20:26:27 +0200
committerDan McGee <dan@archlinux.org>2011-04-04 23:35:51 -0500
commit272e9b355b17ab663ac4a0d9515d381dcf6f03ec (patch)
treeca837c792b91b24498e1057301eb58c7f64c6d20 /lib/libalpm
parentff1974c6e9aa97a6b0cf5e2ce82da70fd70c510c (diff)
downloadpacman-272e9b355b17ab663ac4a0d9515d381dcf6f03ec.tar.xz
libalpm/be_local.c: unused variable ent
spotted by clang analyzer Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Diffstat (limited to 'lib/libalpm')
-rw-r--r--lib/libalpm/be_local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libalpm/be_local.c b/lib/libalpm/be_local.c
index c13dffb4..edb62054 100644
--- a/lib/libalpm/be_local.c
+++ b/lib/libalpm/be_local.c
@@ -405,7 +405,7 @@ static int local_db_populate(pmdb_t *db)
* http://kerneltrap.org/mailarchive/linux-btrfs/2010/1/23/6723483/thread
*/
est_count = 0;
- while((ent = readdir(dbdir)) != NULL) {
+ while(readdir(dbdir) != NULL) {
est_count++;
}
rewinddir(dbdir);