diff --git a/src/xenia/base/filesystem_posix.cc b/src/xenia/base/filesystem_posix.cc index caf8219ad..f0ca77bf4 100644 --- a/src/xenia/base/filesystem_posix.cc +++ b/src/xenia/base/filesystem_posix.cc @@ -155,7 +155,7 @@ class PosixFileHandle : public FileHandle { std::unique_ptr FileHandle::OpenExisting(std::wstring path, uint32_t desired_access) { - int open_access; + int open_access = 0; if (desired_access & FileAccess::kGenericRead) { open_access |= O_RDONLY; }