fs: ext2: fix uninitialized variable

The compiler is unaware of the `block_size > 0` precondition, so it
outputs warnings of uninitialized `reclen`. Explicitly initialize the
variable to suppress this.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates 2025-01-16 08:25:48 +10:00 committed by Benjamin Cabé
parent cd311380dd
commit c26656c83f

View file

@ -954,7 +954,7 @@ static int ext2_add_direntry(struct ext2_inode *dir, struct ext2_direntry *entry
}
uint32_t offset = 0;
uint16_t reclen;
uint16_t reclen = 0;
struct ext2_disk_direntry *de = 0;