From 65c908141c46156cfd573a4e57cf9ac70c55c2d3 Mon Sep 17 00:00:00 2001 From: orbea Date: Wed, 9 Oct 2019 12:48:52 -0700 Subject: [PATCH] wx: Fix conditional jump on uninitialized value with valgrind. ==15788== Conditional jump or move depends on uninitialised value(s) ==15788== at 0x5143A2: wxvbamApp::~wxvbamApp() (wxvbam.cpp:682) ==15788== by 0x5144BB: wxvbamApp::~wxvbamApp() (wxvbam.cpp:676) ==15788== by 0x739CD22: wxEntryCleanup() (in /usr/lib64/libwx_baseu-3.0.so.0.4.0) ==15788== by 0x739D02B: wxUninitialize() (in /usr/lib64/libwx_baseu-3.0.so.0.4.0) ==15788== by 0x739CE39: wxEntry(int&, wchar_t**) (in /usr/lib64/libwx_baseu-3.0.so.0.4.0) ==15788== by 0x50BD42: main (wxvbam.cpp:32) v2: Initialize overrides as a nullptr. --- src/wx/wxvbam.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/wxvbam.h b/src/wx/wxvbam.h index 618fe64c..451a5599 100644 --- a/src/wx/wxvbam.h +++ b/src/wx/wxvbam.h @@ -120,7 +120,7 @@ public: // the main configuration wxFileConfig* cfg; // vba-over.ini - wxFileConfig* overrides; + wxFileConfig* overrides = nullptr; wxFileName rom_database; wxFileName rom_database_scene;