Test error name is non-empty for the whole range
This commit is contained in:
@@ -1964,7 +1964,9 @@ void XMLDocument::SetError( XMLError error, const char* str1, const char* str2 )
|
||||
const char* XMLDocument::ErrorName() const
|
||||
{
|
||||
TIXMLASSERT( _errorID >= 0 && _errorID < XML_ERROR_COUNT );
|
||||
return _errorNames[_errorID];
|
||||
const char* errorName = _errorNames[_errorID];
|
||||
TIXMLASSERT( errorName && errorName[0] );
|
||||
return errorName;
|
||||
}
|
||||
|
||||
void XMLDocument::PrintError() const
|
||||
|
||||
Reference in New Issue
Block a user