From ba68a3aea6269b8fc9d276e3ae44c9d1883f2559 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Tue, 21 Mar 2017 11:39:48 +0300 Subject: [PATCH] Pointer assertion --- tinyxml2.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 87c1a99..a645c57 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -1133,6 +1133,7 @@ XMLNode* XMLText::ShallowClone( XMLDocument* doc ) const bool XMLText::ShallowEqual( const XMLNode* compare ) const { + TIXMLASSERT( compare ); const XMLText* text = compare->ToText(); return ( text && XMLUtil::StringEqual( text->Value(), Value() ) ); }