fixed compile error

This commit is contained in:
mrexodia 2017-03-31 00:39:34 +02:00
parent 1232d41068
commit 2d0238aeb0
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8

View File

@ -1381,7 +1381,7 @@ void MemoryWidget::setFcnName(QString addr) {
// TDOD: FIX ME, ugly
if (addr.contains("0x")) {
fcn = this->main->core->functionAt(addr.toULongLong(&ok, 16));
if (ok && fcn && *fcn) {
if (ok && fcn) {
QString segment = this->main->core->cmd("S. @ " + addr).split(" ").last();
addr = segment.trimmed() + ":"+ fcn->name;
}