| Index: third_party/libxml/src/valid.c
|
| diff --git a/third_party/libxml/src/valid.c b/third_party/libxml/src/valid.c
|
| index 409aa81dad69e2353ee5698799de0b62e0b4c5ca..45a3f703a24caa3458bceaad1150b25f6c27c1f7 100644
|
| --- a/third_party/libxml/src/valid.c
|
| +++ b/third_party/libxml/src/valid.c
|
| @@ -2634,8 +2634,10 @@ xmlAddID(xmlValidCtxtPtr ctxt, xmlDocPtr doc, const xmlChar *value,
|
| /*
|
| * The id is already defined in this DTD.
|
| */
|
| - xmlErrValidNode(ctxt, attr->parent, XML_DTD_ID_REDEFINED,
|
| - "ID %s already defined\n", value, NULL, NULL);
|
| + if (ctxt != NULL) {
|
| + xmlErrValidNode(ctxt, attr->parent, XML_DTD_ID_REDEFINED,
|
| + "ID %s already defined\n", value, NULL, NULL);
|
| + }
|
| #endif /* LIBXML_VALID_ENABLED */
|
| xmlFreeID(ret);
|
| return(NULL);
|
|
|