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.
This commit is contained in:
orbea 2019-10-09 12:48:52 -07:00 committed by Rafael Kitover
parent 6adf5ea487
commit 65c908141c
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public:
// the main configuration // the main configuration
wxFileConfig* cfg; wxFileConfig* cfg;
// vba-over.ini // vba-over.ini
wxFileConfig* overrides; wxFileConfig* overrides = nullptr;
wxFileName rom_database; wxFileName rom_database;
wxFileName rom_database_scene; wxFileName rom_database_scene;