mirror of https://github.com/PCSX2/pcsx2.git
debugger: fix another missing init
==18373== Conditional jump or move depends on uninitialised value(s) ==18373== at 0x825CC9B: CtrlMemView::render(wxDC&) (CtrlMemView.cpp:277) ==18373== by 0x825DA19: CtrlMemView::paintEvent(wxPaintEvent&) (CtrlMemView.cpp:138) ==18373== by 0x81F3A5F: Pcsx2App::HandleEvent(wxEvtHandler*, void (wxEvtHandler::*)(wxEvent&), wxEvent&) (AppMain.cpp:614) ==18373== by 0x40BC50B: wxAppConsoleBase::CallEventHandler(wxEvtHandler*, wxEventFunctor&, wxEvent&) const (in /usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0.2.0) ==18373== by 0x426C654: wxEvtHandler::ProcessEventIfMatchesId(wxEventTableEntryBase const&, wxEvtHandler*, wxEvent&) (in /usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0.2.0) ==18373== by 0x426C752: wxEventHashTable::HandleEvent(wxEvent&, wxEvtHandler*) (in /usr/lib/i386-linux-gnu/libwx_baseu-3.0.so.0.2.0) Reported by gcc too
This commit is contained in:
parent
5cf2688c0c
commit
fa12743c8e
|
@ -201,9 +201,9 @@ void CtrlMemView::render(wxDC& dc)
|
|||
for (int j = 0; j < rowSize; j++)
|
||||
{
|
||||
u32 byteAddress = rowAddress + j;
|
||||
u8 byteCurrent;
|
||||
bool byteValid;
|
||||
|
||||
u8 byteCurrent = 0;
|
||||
bool byteValid = false;
|
||||
|
||||
try {
|
||||
byteValid = validCpu && cpu->isValidAddress(byteAddress);
|
||||
|
||||
|
|
Loading…
Reference in New Issue