diff options
| author | 2021-05-28 01:46:26 -0400 | |
|---|---|---|
| committer | 2021-05-28 01:46:30 -0400 | |
| commit | 019bc9f6b2a7de85a0684c6f9efd37d1ea3282e4 (patch) | |
| tree | e63d024f919f340f419e7f270a71db71bad46ab3 /src/common/fs | |
| parent | Merge pull request #6372 from bunnei/raster-cache-fix (diff) | |
| download | yuzu-019bc9f6b2a7de85a0684c6f9efd37d1ea3282e4.tar.gz yuzu-019bc9f6b2a7de85a0684c6f9efd37d1ea3282e4.tar.xz yuzu-019bc9f6b2a7de85a0684c6f9efd37d1ea3282e4.zip | |
common/fs/file: Default initialize IOFile members
Prevents a potential uninitialized read vector in the move constructor.
Diffstat (limited to 'src/common/fs')
| -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: | |||
| 441 | 441 | ||
| 442 | private: | 442 | private: |
| 443 | std::filesystem::path file_path; | 443 | std::filesystem::path file_path; |
| 444 | FileAccessMode file_access_mode; | 444 | FileAccessMode file_access_mode{}; |
| 445 | FileType file_type; | 445 | FileType file_type{}; |
| 446 | 446 | ||
| 447 | std::FILE* file = nullptr; | 447 | std::FILE* file = nullptr; |
| 448 | }; | 448 | }; |