diff options
author | Lioncash <mathew1800@gmail.com> | 2021-05-28 01:46:26 -0400 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2021-05-28 01:46:30 -0400 |
commit | 019bc9f6b2a7de85a0684c6f9efd37d1ea3282e4 (patch) | |
tree | e63d024f919f340f419e7f270a71db71bad46ab3 /src/common/fs/file.h | |
parent | 3289abe1cce1bb2ae529c814fe51ab5f4615b1b1 (diff) |
common/fs/file: Default initialize IOFile members
Prevents a potential uninitialized read vector in the move constructor.
Diffstat (limited to 'src/common/fs/file.h')
-rw-r--r-- | src/common/fs/file.h | 4 |
1 files changed, 2 insertions, 2 deletions
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; }; |