Explorar o código

Merge pull request #401 from Dmitry-Me/assertForNonNullString

Assertion in StrPair::SetStr()
Lee Thomason %!s(int64=10) %!d(string=hai) anos
pai
achega
9c8582c7c3
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      tinyxml2.cpp

+ 1 - 0
tinyxml2.cpp

@@ -177,6 +177,7 @@ void StrPair::Reset()
 
 void StrPair::SetStr( const char* str, int flags )
 {
+    TIXMLASSERT( str );
     Reset();
     size_t len = strlen( str );
     TIXMLASSERT( _start == 0 );