Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix RELAX NG include bug #655288

When overriding during include, children of the root
node are scanned. But the root node was gotten with
doc->children, instead of xmlDocGetRootElement.
  • Loading branch information...
commit d7eb9b5d47e1f5ea1c45db3a0ca5a1c8621cfb05 1 parent 8bb1298
@shaunix shaunix authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 relaxng.c
View
4 relaxng.c
@@ -1561,8 +1561,8 @@ xmlRelaxNGRemoveRedefine(xmlRelaxNGParserCtxtPtr ctxt,
href = xmlGetProp(tmp, BAD_CAST "href");
#endif
if (xmlRelaxNGRemoveRedefine(ctxt, href,
- inc->doc->children->
- children, name) == 1) {
+ xmlDocGetRootElement(inc->doc)->children,
+ name) == 1) {
found = 1;
}
#ifdef DEBUG_INCLUDE
Please sign in to comment.
Something went wrong with that request. Please try again.