fixed bugs #58073 reported by Greg Shtilman Daniel
* parser.c: fixed bugs #58073 reported by Greg Shtilman
Daniel
diff --git a/parser.c b/parser.c
index eb94eb9..b6131a4 100644
--- a/parser.c
+++ b/parser.c
@@ -1493,6 +1493,7 @@
/*
* 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 @@
* Otherwise, heuristic :-\
*/
if (RAW != '<') return(0);
- if (ctxt->node == NULL) return(0);
if ((ctxt->node->children == NULL) &&
(RAW == '<') && (NXT(1) == '/')) return(0);