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:
parent
34099b4031
commit
3893606666
@ -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,
|
||||
|
8
parser.c
8
parser.c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user