summaryrefslogtreecommitdiff
path: root/ext/xml/compat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/xml/compat.c')
-rw-r--r--ext/xml/compat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/xml/compat.c b/ext/xml/compat.c
index a5797ad37d..7bb58c4d29 100644
--- a/ext/xml/compat.c
+++ b/ext/xml/compat.c
@@ -88,7 +88,7 @@ _start_element_handler_ns(void *user, const xmlChar *name, const xmlChar *prefix
for (i = 0; i < nb_attributes; i += 1) {
if (attributes[y+1] != NULL) {
- _qualify_namespace(parser, attributes[y] , attributes[2], &qualified_name_attr);
+ _qualify_namespace(parser, attributes[y] , attributes[y + 2], &qualified_name_attr);
} else {
qualified_name_attr = xmlStrdup(attributes[y]);
}