mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-07 13:20:25 +00:00
Check if next char exists
This commit is contained in:
parent
369ea7e177
commit
e4f862c0b9
3
extern/oics/tinyxmlparser.cpp
vendored
3
extern/oics/tinyxmlparser.cpp
vendored
@ -1295,9 +1295,10 @@ const char* TiXmlUnknown::Parse( const char* p, TiXmlParsingData* data, TiXmlEnc
|
|||||||
++p;
|
++p;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !p )
|
if ( !p || !*p )
|
||||||
{
|
{
|
||||||
if ( document ) document->SetError( TIXML_ERROR_PARSING_UNKNOWN, 0, 0, encoding );
|
if ( document ) document->SetError( TIXML_ERROR_PARSING_UNKNOWN, 0, 0, encoding );
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
if ( *p == '>' )
|
if ( *p == '>' )
|
||||||
return p+1;
|
return p+1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user