Commit c26656c8 authored by Jordan Yates's avatar Jordan Yates Committed by Benjamin Cabé
Browse files

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: default avatarJordan Yates <jordan@embeint.com>
parent cd311380
Loading
Loading
Loading
Loading
+1 −1
Changes for subsys/fs/ext2/ext2_impl.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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;