1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

Small fixups: - xml2Conf.sh.in: fixes pointed out by Fredrik Hallenberg -

Small fixups:
- xml2Conf.sh.in: fixes pointed out by Fredrik Hallenberg
- parserInternals.c: removed unneeded test raised by Stric
Daniel
This commit is contained in:
Daniel Veillard
2001-03-03 18:50:55 +00:00
parent e1dc0114ac
commit 14be0a178f
3 changed files with 12 additions and 10 deletions

View File

@ -2196,12 +2196,9 @@ xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
ctxt->spaceTab[0] = -1;
ctxt->space = &ctxt->spaceTab[0];
if (sax == NULL) {
ctxt->sax = &xmlDefaultSAXHandler;
} else {
ctxt->sax = sax;
memcpy(sax, &xmlDefaultSAXHandler, sizeof(xmlSAXHandler));
}
ctxt->sax = sax;
memcpy(sax, &xmlDefaultSAXHandler, sizeof(xmlSAXHandler));
ctxt->userData = ctxt;
ctxt->myDoc = NULL;
ctxt->wellFormed = 1;