Merge branch 'noshbar-unintialised-fileaccess-fix'

This commit is contained in:
Justin Moore
2020-02-08 14:44:26 -06:00
+1 -1
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;
}