From 55a408edad7b60a2a74c4807af6f783e639b6f30 Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Fri, 22 Jul 2016 10:13:54 +0200 Subject: [PATCH] debugger: init resolvePointerStrings to a default value Fix valgrind issue: ==3560== Conditional jump or move depends on uninitialised value(s) ==3560== at 0x81F7949: CtrlRegisterList::OnDraw(wxDC&) (CtrlRegisterList.cpp:291) ==3560== by 0x47826DE: wxAnyScrollHelperBase::HandleOnPaint(wxPaintEvent&) (in /usr/lib/i386-linux-gnu/libwx_gtk2u_core-3.0.so.0.2.0) ==3560== by 0x4785969: wxScrollHelperEvtHandler::ProcessEvent(wxEvent&) (in /usr/lib/i386-linux-gnu/libwx_gtk2u_core-3.0.so.0.2.0) ==3560== by 0x426CA0E: wxEvtHandler::SafelyProcessEvent(wxEvent&) (in /usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0.2.0) ==3560== by 0x4710BAE: wxWindowBase::HandleWindowEvent(wxEvent&) const (in /usr/lib/i386-linux-gnu/libwx_gtk2u_core-3.0.so.0.2.0) ==3560== by 0x44EF67D: wxWindow::GTKSendPaintEvents(_GdkRegion const*) (in /usr/lib/i386-linux-gnu/libwx_gtk2u_core-3.0.so.0.2.0) --- pcsx2/gui/Debugger/CtrlRegisterList.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/pcsx2/gui/Debugger/CtrlRegisterList.cpp b/pcsx2/gui/Debugger/CtrlRegisterList.cpp index 82a0d827b0..fcc38d0120 100644 --- a/pcsx2/gui/Debugger/CtrlRegisterList.cpp +++ b/pcsx2/gui/Debugger/CtrlRegisterList.cpp @@ -52,6 +52,7 @@ CtrlRegisterList::CtrlRegisterList(wxWindow* parent, DebugInterface* _cpu) category = 0; maxBits = 128; lastPc = 0xFFFFFFFF; + resolvePointerStrings = false; for (int i = 0; i < cpu->getRegisterCategoryCount(); i++) {