mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
fix #68882, cleanup the XInclude copying of node, merge back IDs in the
* tree.c valid.c xinclude.c: fix #68882, cleanup the XInclude copying of node, merge back IDs in the target document. * result/XInclude/docids.xml test/XInclude/docs/docids.xml test/XInclude/ents/ids.xml: test case * result/VC/ElementValid4: output changed due to a typo fix Daniel
This commit is contained in:
3
valid.c
3
valid.c
@ -1859,7 +1859,8 @@ xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
|
||||
/*
|
||||
* The id is already defined in this DTD.
|
||||
*/
|
||||
VERROR(ctxt->userData, "ID %s already defined\n", value);
|
||||
if (ctxt != NULL)
|
||||
VERROR(ctxt->userData, "ID %s already defined\n", value);
|
||||
xmlFreeID(ret);
|
||||
return(NULL);
|
||||
}
|
||||
|
Reference in New Issue
Block a user