1
0
mirror of https://github.com/leethomason/tinyxml2.git synced 2026-07-28 22:52:59 +04:00

Fixed: LoadFile() returns XML_NO_ERROR for empty documents.

This commit is contained in:
Vasily Biryukov
2013-04-20 14:12:33 +06:00
parent c510a8c76e
commit 1cfafd0d24
3 changed files with 8 additions and 0 deletions
+1
View File
@@ -1608,6 +1608,7 @@ XMLError XMLDocument::LoadFile( FILE* fp )
fseek( fp, 0, SEEK_SET );
if ( size == 0 ) {
SetError( XML_ERROR_EMPTY_DOCUMENT, 0, 0 );
return _errorID;
}