From 4ead0836c56c906e1f3df04af7c5a5d5afa58d82 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Fri, 1 Apr 2022 16:37:13 +0200 Subject: [PATCH] Fixed typo in nsattcmp attribute handling --- expat/xmlwf/xmlwf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/xmlwf/xmlwf.c b/expat/xmlwf/xmlwf.c index b0cd212f..3a6b8bad 100644 --- a/expat/xmlwf/xmlwf.c +++ b/expat/xmlwf/xmlwf.c @@ -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);