summaryrefslogtreecommitdiffstats
path: root/src/mtab.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-01-31 11:57:25 -0500
committerTavian Barnes <tavianator@tavianator.com>2023-01-31 11:57:50 -0500
commit52537ad1cb46450f0b4eed090f5adfa9cbaeeb02 (patch)
treed7d5e0af09568b39a7ba1183a46570907db6efc1 /src/mtab.c
parent9463fdd30d392c98de7b5712d30dfbaeada40e99 (diff)
downloadbfs-52537ad1cb46450f0b4eed090f5adfa9cbaeeb02.tar.xz
mtab: Explicitly initialize parent_ret
Diffstat (limited to 'src/mtab.c')
-rw-r--r--src/mtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mtab.c b/src/mtab.c
index ae6dfd2..0e377a1 100644
--- a/src/mtab.c
+++ b/src/mtab.c
@@ -192,8 +192,8 @@ static int bfs_mtab_fill_types(struct bfs_mtab *mtab) {
// the parent directory open in case multiple mounts have the same parent (e.g. /mnt).
char *parent_dir = NULL;
int parent_fd = -1;
+ int parent_ret = -1;
struct bfs_stat parent_stat;
- int parent_ret;
for (size_t i = 0; i < darray_length(mtab->entries); ++i) {
struct bfs_mtab_entry *entry = &mtab->entries[i];