From 6dd398f6c49c4a547bf3911ed6fc14897d302726 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 25 Jul 2001 22:41:03 +0000 Subject: [PATCH] fixed bugs #58073 reported by Greg Shtilman Daniel * parser.c: fixed bugs #58073 reported by Greg Shtilman Daniel --- ChangeLog | 6 +++++- parser.c | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 168d2fe9..ed5b2b64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,8 @@ -Thu Jul 26 11:38:37 EDT 2001 +Thu Jul 26 12:40:35 EDT 2001 Daniel Veillard + + * parser.c: fixed bugs #58073 reported by Greg Shtilman + +Thu Jul 26 11:38:37 EDT 2001 Daniel Veillard * parser.c: fixes bug #57652 reported by Morus Walter diff --git a/parser.c b/parser.c index eb94eb99..b6131a41 100644 --- a/parser.c +++ b/parser.c @@ -1493,6 +1493,7 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) { /* * Look if the element is mixed content in the Dtd if available */ + if (ctxt->node == NULL) return(0); if (ctxt->myDoc != NULL) { ret = xmlIsMixedElement(ctxt->myDoc, ctxt->node->name); if (ret == 0) return(1); @@ -1503,7 +1504,6 @@ static int areBlanks(xmlParserCtxtPtr ctxt, const xmlChar *str, int len) { * Otherwise, heuristic :-\ */ if (RAW != '<') return(0); - if (ctxt->node == NULL) return(0); if ((ctxt->node->children == NULL) && (RAW == '<') && (NXT(1) == '/')) return(0);