Merge pull request #260 from Dmitry-Me/placeChecksInMoreNaturalOrder

Rearrange checks in more natural order
This commit is contained in:
Lee Thomason 2015-01-05 17:07:50 -08:00
commit 75b4e23957
1 changed files with 2 additions and 3 deletions

View File

@ -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;