mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 08:41:15 +00:00
Kernel: Always initialize ext2_inode and ext_super_block structs
Found by PVS Studio Static Analysis
This commit is contained in:
parent
b8e210deea
commit
0348d9afbe
Notes:
sideshowbarker
2024-07-17 22:21:21 +09:00
Author: https://github.com/bgianfo Commit: https://github.com/SerenityOS/serenity/commit/0348d9afbe3 Pull-request: https://github.com/SerenityOS/serenity/pull/11366 Reviewed-by: https://github.com/IdanHo ✅
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue