Merge branch 'noshbar-unintialised-fileaccess-fix'
This commit is contained in:
commit
1111394c83
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue