mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-10-26 00:37:43 +03:00
xmlParseStartTag2() contains typo when checking for default definitions for an attribute in a namespace
* parser.c: (xmlParseStartTag2): - Fix index into defaults->values. It is only correct the first time through the loop when i == 0. Fixes #467.
This commit is contained in:
2
parser.c
2
parser.c
@@ -9593,7 +9593,7 @@ next_attr:
|
|||||||
if (j <= nbNs) continue;
|
if (j <= nbNs) continue;
|
||||||
|
|
||||||
nsname = xmlGetNamespace(ctxt, attname);
|
nsname = xmlGetNamespace(ctxt, attname);
|
||||||
if (nsname != defaults->values[2]) {
|
if (nsname != defaults->values[5 * i + 2]) {
|
||||||
if (nsPush(ctxt, attname,
|
if (nsPush(ctxt, attname,
|
||||||
defaults->values[5 * i + 2]) > 0)
|
defaults->values[5 * i + 2]) > 0)
|
||||||
nbNs++;
|
nbNs++;
|
||||||
|
|||||||
Reference in New Issue
Block a user