浏览代码

Merge pull request #495 from Dmitry-Me/pointerAssertionAfterIdentify

Pointer post-assertion
Lee Thomason 9 年之前
父节点
当前提交
cd47f8e0d3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      tinyxml2.cpp

+ 1 - 0
tinyxml2.cpp

@@ -965,6 +965,7 @@ char* XMLNode::ParseDeep( char* p, StrPair* parentEnd )
         XMLNode* node = 0;
 
         p = _document->Identify( p, &node );
+        TIXMLASSERT( p );
         if ( node == 0 ) {
             break;
         }