From ecc2f6268842c5154342605dd51ddd5b129a4365 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Thu, 27 May 2021 23:12:40 -0700 Subject: [PATCH] Common: Zero initialize readlink buffer. See #14483. --- Common/File/FileUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/File/FileUtil.cpp b/Common/File/FileUtil.cpp index b528d21b38..f1c12ede97 100644 --- a/Common/File/FileUtil.cpp +++ b/Common/File/FileUtil.cpp @@ -752,7 +752,7 @@ const Path &GetExeDirectory() { ExePath = Path(program_path); #elif (defined(__APPLE__) && !PPSSPP_PLATFORM(IOS)) || defined(__linux__) || defined(KERN_PROC_PATHNAME) - char program_path[4096]; + char program_path[4096]{}; uint32_t program_path_size = sizeof(program_path) - 1; #if defined(__linux__)