From 2dae53c316493899736e42e3a38fb8190006adc8 Mon Sep 17 00:00:00 2001 From: scgm0 <2682963017@qq.com> Date: Sat, 20 Jan 2024 06:31:48 +0800 Subject: [PATCH] Explicitly initialize all of `FileAccess::create_func[ACCESS_MAX]` --- core/io/file_access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/io/file_access.cpp b/core/io/file_access.cpp index 6026dbf8962..55286277fa4 100644 --- a/core/io/file_access.cpp +++ b/core/io/file_access.cpp @@ -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;