diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 9d6be5c..1b46071 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp @@ -149,6 +149,7 @@ void StrPair::TransferTo( StrPair* other ) // This in effect implements the assignment operator by "moving" // ownership (as in auto_ptr). + TIXMLASSERT( other != 0 ); TIXMLASSERT( other->_flags == 0 ); TIXMLASSERT( other->_start == 0 ); TIXMLASSERT( other->_end == 0 );