mirror of https://github.com/PCSX2/pcsx2.git
debugger: remove useless null check
It is done too late. CID 168625 (#1 of 1): Dereference before null check (REVERSE_INULL) check_after_deref: Null-checking this->cpu suggests that it may be null, but it has already been dereferenced on all paths leading to the check.
This commit is contained in:
parent
f38cd9d80d
commit
2d2fdd6e44
|
@ -289,7 +289,7 @@ void CtrlRegisterList::OnDraw(wxDC& dc)
|
|||
{
|
||||
int startIndex = std::min<int>(3, maxBits / 32 - 1);
|
||||
|
||||
if (resolvePointerStrings && cpu && cpu->isAlive()) {
|
||||
if (resolvePointerStrings && cpu->isAlive()) {
|
||||
char *strval = cpu->stringFromPointer(value._u32[0]);
|
||||
if (strval) {
|
||||
static wxColor clr = wxColor(0xFF228822);
|
||||
|
|
Loading…
Reference in New Issue