SCI: Do not try to dereference object name when it's not a pointer.

Stops flood of warnings in some Mac titles.

svn-id: r55849
This commit is contained in:
Walter van Niftrik 2011-02-09 00:27:50 +00:00
parent 058d75b708
commit 386203a3d6

View File

@ -254,7 +254,9 @@ const char *SegManager::getObjectName(reg_t pos) {
if (nameReg.isNull())
return "<no name>";
const char *name = derefString(nameReg);
const char *name = 0;
if (nameReg.segment)
name = derefString(nameReg);
if (!name)
return "<invalid name>";