Explicitly initialize all of FileAccess::create_func[ACCESS_MAX]

This commit is contained in:
scgm0 2024-01-20 06:31:48 +08:00 committed by Rémi Verschelde
parent 313f623b9d
commit 2dae53c316
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -38,7 +38,7 @@
#include "core/io/marshalls.h"
#include "core/os/os.h"
FileAccess::CreateFunc FileAccess::create_func[ACCESS_MAX] = { nullptr, nullptr };
FileAccess::CreateFunc FileAccess::create_func[ACCESS_MAX] = {};
FileAccess::FileCloseFailNotify FileAccess::close_fail_notify = nullptr;