Explorar el Código

Assertion in StrPair::SetStr()

Dmitry-Me hace 10 años
padre
commit
0515fa9d27
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 );