1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-08-01 10:06:59 +03:00

fix bug #72706 when loading a NULL entity Daniel

* xmlIO.c: fix bug #72706 when loading a NULL entity
Daniel
This commit is contained in:
Daniel Veillard
2002-03-02 09:34:02 +00:00
parent c0fef77455
commit c6613048af
2 changed files with 6 additions and 0 deletions

View File

@ -2528,6 +2528,8 @@ xmlDefaultExternalEntityLoader(const char *URL, const char *ID,
resource = (xmlChar *) URL;
if (resource == NULL) {
if (ID == NULL)
ID = "NULL";
if ((ctxt->validate) && (ctxt->sax != NULL) &&
(ctxt->sax->error != NULL))
ctxt->sax->error(ctxt,