mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-07 14:09:26 +00:00
Merge pull request #594 from orbitcowboy/master
Fixed variable mix-up in nsattcmp attribute handling
This commit is contained in:
commit
e55290c77f
1 changed files with 1 additions and 1 deletions
|
@ -217,7 +217,7 @@ nsattcmp(const void *p1, const void *p2) {
|
|||
const XML_Char *att1 = *(const XML_Char **)p1;
|
||||
const XML_Char *att2 = *(const XML_Char **)p2;
|
||||
int sep1 = (tcsrchr(att1, NSSEP) != 0);
|
||||
int sep2 = (tcsrchr(att1, NSSEP) != 0);
|
||||
int sep2 = (tcsrchr(att2, NSSEP) != 0);
|
||||
if (sep1 != sep2)
|
||||
return sep1 - sep2;
|
||||
return tcscmp(att1, att2);
|
||||
|
|
Loading…
Add table
Reference in a new issue