From 71e5baa61b1a4d8aed9b6258123cd4d353eb8173 Mon Sep 17 00:00:00 2001 From: firewave Date: Sat, 2 Dec 2023 20:05:46 +0100 Subject: [PATCH] Model3.cpp: avoid usage of uninitialized memory ``` ==213531== Thread 20 SoundBoardNoSyn: ==213531== Conditional jump or move depends on uninitialised value(s) ==213531== at 0x1A1D1E: CModel3::RunSoundBoardThread() (Model3.cpp:2607) ==213531== by 0x49BECEA: UnknownInlinedFun (SDL_thread.c:292) ==213531== by 0x49BECEA: RunThread.lto_priv.0 (SDL_systhread.c:76) ==213531== by 0x4F719EA: start_thread (pthread_create.c:444) ==213531== by 0x4FF5653: clone (clone.S:100) ``` --- Src/Model3/Model3.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Src/Model3/Model3.cpp b/Src/Model3/Model3.cpp index 39071f7..e780d95 100644 --- a/Src/Model3/Model3.cpp +++ b/Src/Model3/Model3.cpp @@ -3205,6 +3205,7 @@ CModel3::CModel3(Util::Config::Node &config) : m_config(config), m_multiThreaded(config["MultiThreaded"].ValueAs()), m_gpuMultiThreaded(config["GPUMultiThreaded"].ValueAs()), + sndBrdWakeNotify(false), TileGen(config), GPU(config), SoundBoard(config),