diff --git a/core/pen/source/posix/file_system.cpp b/core/pen/source/posix/file_system.cpp index 869e8921..e6367986 100644 --- a/core/pen/source/posix/file_system.cpp +++ b/core/pen/source/posix/file_system.cpp @@ -291,6 +291,7 @@ namespace pen pen_error filesystem_getmtime(const c8* filename, u32& mtime_out) { struct stat stat_res; + memset(&stat_res, 0x0, sizeof(stat_res)); stat(filename, &stat_res);