summaryrefslogtreecommitdiffstats
path: root/mtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'mtab.c')
-rw-r--r--mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mtab.c b/mtab.c
index 8eb90bb..adc3f58 100644
--- a/mtab.c
+++ b/mtab.c
@@ -196,7 +196,7 @@ fail:
static void bfs_mtab_fill_types(struct bfs_mtab *mtab) {
for (size_t i = 0; i < darray_length(mtab->entries); ++i) {
- struct bfs_mtab_entry *entry = mtab->entries + i;
+ struct bfs_mtab_entry *entry = &mtab->entries[i];
struct bfs_stat sb;
if (bfs_stat(AT_FDCWD, entry->path, BFS_STAT_NOFOLLOW | BFS_STAT_NOSYNC, &sb) != 0) {