aboutsummaryrefslogtreecommitdiffstats
path: root/xmlIO.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2002-03-02 09:34:02 +0000
committerDaniel Veillard <veillard@src.gnome.org>2002-03-02 09:34:02 +0000
commitc6613048af6864f162d0587bf221fac825672c71 (patch)
treea43cb277e02abf0fe60d4ff1be4f05417f7e7829 /xmlIO.c
parentc0fef7745518d98f32d3fce0a0f2ba0eecb35c5f (diff)
downloadandroid_external_libxml2-c6613048af6864f162d0587bf221fac825672c71.tar.gz
android_external_libxml2-c6613048af6864f162d0587bf221fac825672c71.tar.bz2
android_external_libxml2-c6613048af6864f162d0587bf221fac825672c71.zip
fix bug #72706 when loading a NULL entity Daniel
* xmlIO.c: fix bug #72706 when loading a NULL entity Daniel
Diffstat (limited to 'xmlIO.c')
-rw-r--r--xmlIO.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlIO.c b/xmlIO.c
index 815df620..056beb88 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -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,