1
0
Fork 0
forked from suyu/suyu

common/fs/file: Default initialize IOFile members

Prevents a potential uninitialized read vector in the move constructor.
This commit is contained in:
Lioncash 2021-05-28 01:46:26 -04:00
parent 3289abe1cc
commit 019bc9f6b2

View file

@ -441,8 +441,8 @@ public:
private: private:
std::filesystem::path file_path; std::filesystem::path file_path;
FileAccessMode file_access_mode; FileAccessMode file_access_mode{};
FileType file_type; FileType file_type{};
std::FILE* file = nullptr; std::FILE* file = nullptr;
}; };