mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-13 19:01:23 +00:00
Assertions in string comparison
This commit is contained in:
parent
f00c179eba
commit
21f996960d
@ -570,6 +570,9 @@ public:
|
||||
if ( p == q ) {
|
||||
return true;
|
||||
}
|
||||
TIXMLASSERT( p );
|
||||
TIXMLASSERT( q );
|
||||
TIXMLASSERT( nChar >= 0 );
|
||||
return strncmp( p, q, nChar ) == 0;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user