Merge pull request #482 from Dmitry-Me/stringEqualAssertions

Assertions in string comparison
This commit is contained in:
Lee Thomason 2016-10-11 13:11:06 -07:00 committed by GitHub
commit 0d3de1edbe
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;
}