summaryrefslogtreecommitdiff
path: root/xinclude.c
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2004-04-16 08:11:26 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2004-04-16 08:11:26 +0000
commit5d8d10bba35584b144d73aad43606a338b690314 (patch)
tree1c1d87fbcf85712496258d9ff34af70a6fe04014 /xinclude.c
parent0d1a845097fa0e224a2712b3c5c5380dd64f3fa7 (diff)
downloadlibxml2-5d8d10bba35584b144d73aad43606a338b690314.tar.gz
fixed problem causing duplicate fallback execution (bug 139520) added
* xinclude.c: fixed problem causing duplicate fallback execution (bug 139520) * test/XInclude/docs/fallback2.xml result/XInclude/fallback2.*: added testcase
Diffstat (limited to 'xinclude.c')
-rw-r--r--xinclude.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xinclude.c b/xinclude.c
index 8f8b8183..ed6d7ae6 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -2206,6 +2206,8 @@ xmlXIncludeDoProcess(xmlXIncludeCtxtPtr ctxt, xmlDocPtr doc, xmlNodePtr tree) {
if (xmlXIncludeTestNode(ctxt, cur))
xmlXIncludePreProcessNode(ctxt, cur);
} else {
+ if (cur == tree)
+ break;
do {
cur = cur->parent;
if (cur == NULL) break; /* do */