commit | ba68a3aea6269b8fc9d276e3ae44c9d1883f2559 | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Tue Mar 21 11:39:48 2017 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Tue Mar 21 11:39:48 2017 +0300 |
tree | e7c3afafc88d42ae05602c9680348da21c0604a1 | |
parent | 395ea09f83cfa34d848cea25b8a64d7ae3858ada [diff] [blame] |
Pointer assertion
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 87c1a99..a645c57 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -1133,6 +1133,7 @@ bool XMLText::ShallowEqual( const XMLNode* compare ) const { + TIXMLASSERT( compare ); const XMLText* text = compare->ToText(); return ( text && XMLUtil::StringEqual( text->Value(), Value() ) ); }