diff options
author | Brian Gianforcaro <bgianf@serenityos.org> | 2021-12-22 01:27:29 -0800 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-22 13:29:31 -0800 |
commit | 0348d9afbe35a8d61cacc62f2d8532c31fcf1904 (patch) | |
tree | bc8e9eded11137745c3e33c308713b2eb6aff18e /Kernel/FileSystem | |
parent | b8e210deea3d6bc75431587f5c7be75ed74ccac6 (diff) | |
download | serenity-0348d9afbe35a8d61cacc62f2d8532c31fcf1904.zip |
Kernel: Always initialize ext2_inode and ext_super_block structs
Found by PVS Studio Static Analysis
Diffstat (limited to 'Kernel/FileSystem')
-rw-r--r-- | Kernel/FileSystem/Ext2FileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h index 59c8fdbd0c..717ba74238 100644 --- a/Kernel/FileSystem/Ext2FileSystem.h +++ b/Kernel/FileSystem/Ext2FileSystem.h @@ -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; |