Assertions in string comparison

This commit is contained in:
Dmitry-Me 2016-10-03 13:01:57 +03:00
parent f00c179eba
commit 21f996960d
1 changed files with 3 additions and 0 deletions

View File

@ -570,6 +570,9 @@ public:
if ( p == q ) {
return true;
}
TIXMLASSERT( p );
TIXMLASSERT( q );
TIXMLASSERT( nChar >= 0 );
return strncmp( p, q, nChar ) == 0;
}