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:
Gregory Hainaut 2016-08-12 22:57:09 +02:00
parent f38cd9d80d
commit 2d2fdd6e44
1 changed files with 1 additions and 1 deletions

View File

@ -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);