diff --git a/ChangeLog b/ChangeLog index c77c1c68..3ca161f1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Oct 4 13:53:24 CEST 2004 Daniel Veillard + + * parser.c: applied patch from Malcolm Tredinnick fixing bug #152426 + Mon Oct 4 12:26:28 CEST 2004 Daniel Veillard * python/generator.py python/libxml.c python/tests/outbuf.py: diff --git a/parser.c b/parser.c index e1523c05..2b8f5edd 100644 --- a/parser.c +++ b/parser.c @@ -10219,7 +10219,7 @@ xmlSAXParseDTD(xmlSAXHandlerPtr sax, const xmlChar *ExternalID, * Canonicalise the system ID */ systemIdCanonic = xmlCanonicPath(SystemID); - if (systemIdCanonic == NULL) { + if ((SystemID != NULL) && (systemIdCanonic == NULL)) { xmlFreeParserCtxt(ctxt); return(NULL); }