From 019bc9f6b2a7de85a0684c6f9efd37d1ea3282e4 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 28 May 2021 01:46:26 -0400 Subject: common/fs/file: Default initialize IOFile members Prevents a potential uninitialized read vector in the move constructor. --- src/common/fs/file.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/common/fs/file.h b/src/common/fs/file.h index 209f9664b..daea935a2 100644 --- a/src/common/fs/file.h +++ b/src/common/fs/file.h @@ -441,8 +441,8 @@ public: private: std::filesystem::path file_path; - FileAccessMode file_access_mode; - FileType file_type; + FileAccessMode file_access_mode{}; + FileType file_type{}; std::FILE* file = nullptr; }; -- cgit v1.2.3