mirror of
https://github.com/darlinghq/darling-libxml2.git
synced 2025-01-27 21:42:29 +00:00
fixed small problem with missing entities (test/ent2)
* parser.c: fixed small problem with missing entities (test/ent2)
This commit is contained in:
parent
9d8c1dfbb3
commit
b670e2ebbe
@ -1,3 +1,7 @@
|
||||
Fri Sep 26 18:03:42 PDT 2003 William Brack <wbrack@mmm.com.hk>
|
||||
|
||||
* parser.c: fixed small problem with missing entities (test/ent2)
|
||||
|
||||
Sat Sep 27 01:25:39 CEST 2003 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* parser.c: William's change allowed to spot a nasty bug in xmlDoRead
|
||||
|
5
parser.c
5
parser.c
@ -5828,7 +5828,8 @@ xmlParseReference(xmlParserCtxtPtr ctxt) {
|
||||
xmlFreeNodeList(list);
|
||||
list = NULL;
|
||||
}
|
||||
} else if (ret > 0) {
|
||||
} else if ((ret != XML_ERR_OK) &&
|
||||
(ret != XML_WAR_UNDECLARED_ENTITY)) {
|
||||
xmlFatalErr(ctxt, ret, NULL);
|
||||
} else if (list != NULL) {
|
||||
xmlFreeNodeList(list);
|
||||
@ -10666,7 +10667,7 @@ xmlParseExternalEntityPrivate(xmlDocPtr doc, xmlParserCtxtPtr oldctxt,
|
||||
|
||||
|
||||
ctxt = xmlCreateEntityParserCtxt(URL, ID, NULL);
|
||||
if (ctxt == NULL) return(-1);
|
||||
if (ctxt == NULL) return(XML_WAR_UNDECLARED_ENTITY);
|
||||
ctxt->userData = ctxt;
|
||||
if (oldctxt != NULL) {
|
||||
ctxt->_private = oldctxt->_private;
|
||||
|
Loading…
x
Reference in New Issue
Block a user