diff options
author | William M. Brack <wbrack@src.gnome.org> | 2004-04-16 08:11:26 +0000 |
---|---|---|
committer | William M. Brack <wbrack@src.gnome.org> | 2004-04-16 08:11:26 +0000 |
commit | 5d8d10bba35584b144d73aad43606a338b690314 (patch) | |
tree | 1c1d87fbcf85712496258d9ff34af70a6fe04014 /xinclude.c | |
parent | 0d1a845097fa0e224a2712b3c5c5380dd64f3fa7 (diff) | |
download | libxml2-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |