diff --git a/src/ext4_fs.c b/src/ext4_fs.c index e8a2777..8a0be5b 100644 --- a/src/ext4_fs.c +++ b/src/ext4_fs.c @@ -864,6 +864,8 @@ int ext4_fs_alloc_inode(struct ext4_fs *fs, struct ext4_inode_ref *inode_ref, /* Initialize i-node */ struct ext4_inode *inode = inode_ref->inode; + memset(inode, 0, inode_size); + uint32_t mode; if (is_dir) { /*