mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
xinclude: Don't try to fix base of non-elements
This would result in a spurious error.
This commit is contained in:
parent
af2bda4e87
commit
16ccb61dc1
@ -615,6 +615,9 @@ xmlXIncludeBaseFixup(xmlXIncludeCtxtPtr ctxt, xmlNodePtr cur, xmlNodePtr copy,
|
|||||||
xmlNs ns;
|
xmlNs ns;
|
||||||
int res;
|
int res;
|
||||||
|
|
||||||
|
if (cur->type != XML_ELEMENT_NODE)
|
||||||
|
return;
|
||||||
|
|
||||||
if (xmlNodeGetBaseSafe(cur->doc, cur, &base) < 0)
|
if (xmlNodeGetBaseSafe(cur->doc, cur, &base) < 0)
|
||||||
xmlXIncludeErrMemory(ctxt);
|
xmlXIncludeErrMemory(ctxt);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user