Merge branch 'noshbar-unintialised-fileaccess-fix'

This commit is contained in:
Justin Moore 2020-02-08 14:44:26 -06:00
commit 1111394c83
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class PosixFileHandle : public FileHandle {
std::unique_ptr<FileHandle> 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;
}