Procházet zdrojové kódy

Merge pull request #401 from Dmitry-Me/assertForNonNullString

Assertion in StrPair::SetStr()
Lee Thomason před 10 roky
rodič
revize
9c8582c7c3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  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 );