1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-20 14:03:33 +03:00

dohh ... stupid change killing xmlParseDoc() Daniel

* parser.c: dohh ... stupid change killing xmlParseDoc()
Daniel
This commit is contained in:
Daniel Veillard 2004-11-04 17:45:11 +00:00
parent 34099b4031
commit 3893606666
2 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Thu Nov 4 18:44:56 CET 2004 Daniel Veillard <daniel@veillard.com>
* parser.c: dohh ... stupid change killing xmlParseDoc()
Thu Nov 4 18:32:22 CET 2004 Daniel Veillard <daniel@veillard.com>
* gentest.py testapi.c: changing the way the .c is generated,

View File

@ -11973,15 +11973,15 @@ xmlDocPtr
xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
xmlDocPtr ret;
xmlParserCtxtPtr ctxt;
xmlSAXHandlerPtr oldsax = NULL;
if ((cur == NULL) || (sax == NULL)) return(NULL);
if (cur == NULL) return(NULL);
ctxt = xmlCreateDocParserCtxt(cur);
if (ctxt == NULL) return(NULL);
if (sax != NULL) {
if (ctxt->sax != NULL)
xmlFree(ctxt->sax);
oldsax = ctxt->sax;
ctxt->sax = sax;
ctxt->userData = NULL;
}
@ -11995,7 +11995,7 @@ xmlSAXParseDoc(xmlSAXHandlerPtr sax, xmlChar *cur, int recovery) {
ctxt->myDoc = NULL;
}
if (sax != NULL)
ctxt->sax = NULL;
ctxt->sax = oldsax;
xmlFreeParserCtxt(ctxt);
return(ret);