commit | 711b15d545713b3a34a51ce8163d1162533647c9 | [log] [tgz] |
---|---|---|
author | Daniel Veillard <veillard@redhat.com> | Thu Oct 25 19:23:26 2012 +0800 |
committer | Daniel Veillard <veillard@redhat.com> | Thu Oct 25 19:23:26 2012 +0800 |
tree | fee9fd2734d6fc92efa58b2d50f0cbf205ab7b29 | |
parent | a7982ce272016182afafb6f74f3b312c6e5f7faf [diff] |
Fix a bug in the nsclean option of the parser Raised as a side effect of: https://bugzilla.gnome.org/show_bug.cgi?id=663844
diff --git a/parser.c b/parser.c index 19f1217..43f53d9 100644 --- a/parser.c +++ b/parser.c
@@ -1540,7 +1540,7 @@ { if (ctxt->options & XML_PARSE_NSCLEAN) { int i; - for (i = 0;i < ctxt->nsNr;i += 2) { + for (i = ctxt->nsNr - 2;i >= 0;i -= 2) { if (ctxt->nsTab[i] == prefix) { /* in scope */ if (ctxt->nsTab[i + 1] == URL)