mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #401 from Dmitry-Me/assertForNonNullString
Assertion in StrPair::SetStr()
This commit is contained in:
commit
9c8582c7c3
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue