Explorar el Código

Merge pull request #401 from Dmitry-Me/assertForNonNullString

Assertion in StrPair::SetStr()
Lee Thomason hace 10 años
padre
commit
9c8582c7c3
Se han modificado 1 ficheros con 1 adiciones y 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 );