diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-01-31 11:57:25 -0500 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-01-31 11:57:50 -0500 |
commit | 52537ad1cb46450f0b4eed090f5adfa9cbaeeb02 (patch) | |
tree | d7d5e0af09568b39a7ba1183a46570907db6efc1 | |
parent | 9463fdd30d392c98de7b5712d30dfbaeada40e99 (diff) | |
download | bfs-52537ad1cb46450f0b4eed090f5adfa9cbaeeb02.tar.xz |
mtab: Explicitly initialize parent_ret
-rw-r--r-- | src/mtab.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]; |