mirror of https://github.com/AxioDL/tinyxml2.git
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…
Reference in New Issue