mirror of https://github.com/AxioDL/tinyxml2.git
Rearrange checks in more natural order
This commit is contained in:
parent
b4e81b014e
commit
7a7e5dc525
|
@ -924,11 +924,10 @@ char* XMLText::ParseDeep( char* p, StrPair* )
|
|||
}
|
||||
|
||||
p = _value.ParseText( p, "<", flags );
|
||||
if ( !p ) {
|
||||
_document->SetError( XML_ERROR_PARSING_TEXT, start, 0 );
|
||||
}
|
||||
if ( p && *p ) {
|
||||
return p-1;
|
||||
} else if ( !p ) {
|
||||
_document->SetError( XML_ERROR_PARSING_TEXT, start, 0 );
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue