mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #260 from Dmitry-Me/placeChecksInMoreNaturalOrder
Rearrange checks in more natural order
This commit is contained in:
commit
75b4e23957
|
@ -927,11 +927,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