error check

This commit is contained in:
Glenn Maynard
2007-01-23 06:54:29 +00:00
parent 4cad35e670
commit 500074a10f
+6
View File
@@ -319,6 +319,12 @@ unsigned LoadInternal( XNode *pNode, const RString &xml, RString &sErrorOut, uns
XNode *node = new XNode;
iOffset = LoadInternal( node, xml, sErrorOut, iOffset );
if( iOffset == string::npos )
{
delete node;
return iOffset;
}
if( !node->GetName().empty() )
{
DEBUG_ASSERT( node->GetName().size() );