1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-13 12:55:08 -05:00

libalpm/be_local.c: unused variable ent

spotted by clang analyzer

Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
This commit is contained in:
Xavier Chantry 2011-04-02 20:26:27 +02:00 committed by Dan McGee
parent ff1974c6e9
commit 272e9b355b

View File

@ -405,7 +405,7 @@ static int local_db_populate(pmdb_t *db)
* http://kerneltrap.org/mailarchive/linux-btrfs/2010/1/23/6723483/thread * http://kerneltrap.org/mailarchive/linux-btrfs/2010/1/23/6723483/thread
*/ */
est_count = 0; est_count = 0;
while((ent = readdir(dbdir)) != NULL) { while(readdir(dbdir) != NULL) {
est_count++; est_count++;
} }
rewinddir(dbdir); rewinddir(dbdir);