Rearrange checks in more natural order

This commit is contained in:
Dmitry-Me 2015-01-01 17:58:35 +03:00
parent b4e81b014e
commit 7a7e5dc525
1 changed files with 2 additions and 3 deletions

View File

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