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:
parent
cd311380dd
commit
c26656c83f
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue