mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #482 from Dmitry-Me/stringEqualAssertions
Assertions in string comparison
This commit is contained in:
commit
0d3de1edbe
|
@ -570,6 +570,9 @@ public:
|
|||
if ( p == q ) {
|
||||
return true;
|
||||
}
|
||||
TIXMLASSERT( p );
|
||||
TIXMLASSERT( q );
|
||||
TIXMLASSERT( nChar >= 0 );
|
||||
return strncmp( p, q, nChar ) == 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue