mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 16:14:23 +00:00
Kernel: Always initialize ext2_inode and ext_super_block structs
Found by PVS Studio Static Analysis
This commit is contained in:
committed by
Brian Gianforcaro
parent
b8e210deea
commit
0348d9afbe
@@ -77,7 +77,7 @@ private:
|
||||
|
||||
mutable Vector<BlockBasedFileSystem::BlockIndex> m_block_list;
|
||||
mutable HashMap<String, InodeIndex> m_lookup_cache;
|
||||
ext2_inode m_raw_inode;
|
||||
ext2_inode m_raw_inode {};
|
||||
};
|
||||
|
||||
class Ext2FS final : public BlockBasedFileSystem {
|
||||
@@ -159,7 +159,7 @@ private:
|
||||
|
||||
u64 m_block_group_count { 0 };
|
||||
|
||||
mutable ext2_super_block m_super_block;
|
||||
mutable ext2_super_block m_super_block {};
|
||||
mutable OwnPtr<KBuffer> m_cached_group_descriptor_table;
|
||||
|
||||
mutable HashMap<InodeIndex, RefPtr<Ext2FSInode>> m_inode_cache;
|
||||
|
||||
Reference in New Issue
Block a user