Expat: attributes come in name/value pairs (bug fix)
I wrongfully assumed that each array element is a name and a value concatenated.
This commit is contained in:
parent
15eedfbb12
commit
f23b47ba17
|
@ -73,9 +73,9 @@ const char *
|
|||
ExpatParser::GetAttributeCase(const XML_Char **atts,
|
||||
const char *name)
|
||||
{
|
||||
for (unsigned i = 0; atts[i] != nullptr; ++i)
|
||||
for (unsigned i = 0; atts[i] != nullptr; i += 2)
|
||||
if (StringEqualsCaseASCII(atts[i], name))
|
||||
return atts[i] + strlen(name) + 1;
|
||||
return atts[i + 1];
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue