From f0c8db64225577e0c930663a50ffd00114bee2c7 Mon Sep 17 00:00:00 2001 From: Itms Date: Mon, 20 Oct 2025 15:08:14 +0200 Subject: [PATCH] Address cppcheck uninitialized warning Reviewed-At: https://gitea.wildfiregames.com/0ad/0ad/pulls/8222 --- source/ps/VisualReplay.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ps/VisualReplay.cpp b/source/ps/VisualReplay.cpp index 1c19411f88..d32d52a1a2 100644 --- a/source/ps/VisualReplay.cpp +++ b/source/ps/VisualReplay.cpp @@ -151,8 +151,8 @@ JS::HandleObject VisualReplay::ReloadReplayCache(const ScriptInterface& scriptIn JS::RootedValue file(rq.cx); OsPath fileName; - double fileSize; - double fileMtime; + double fileSize{0}; + double fileMtime{0}; Script::GetProperty(rq, replay, "directory", fileName); Script::GetProperty(rq, replay, "fileSize", fileSize); Script::GetProperty(rq, replay, "fileMTime", fileMtime);