summaryrefslogtreecommitdiffstats
path: root/src/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.c')
-rw-r--r--src/db.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db.c b/src/db.c
index bc332466..4d856479 100644
--- a/src/db.c
+++ b/src/db.c
@@ -148,6 +148,7 @@ pkginfo_t* db_scan(pacdb_t *db, char *target, unsigned int inforeq)
/* stat the entry, make sure it's a directory */
snprintf(path, PATH_MAX, "%s/%s", db->path, name);
if(stat(path, &sbuf) || !S_ISDIR(sbuf.st_mode)) {
+ ent = readdir(db->dir);
continue;
}
/* truncate the string at the second-to-last hyphen, */