[Expat-checkins] expat/lib xmlparse.c,1.74,1.75
Fred L. Drake
fdrake@users.sourceforge.net
Tue, 27 Aug 2002 13:24:21 -0700
Update of /cvsroot/expat/expat/lib
In directory usw-pr-cvs1:/tmp/cvs-serv24006
Modified Files:
xmlparse.c
Log Message:
Initialize the pools that are part of the parser structure before
letting them get cleared. Reported by Tim Crook.
Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- xmlparse.c 27 Aug 2002 16:09:40 -0000 1.74
+++ xmlparse.c 27 Aug 2002 20:24:19 -0000 1.75
@@ -678,10 +678,10 @@
ns = XML_FALSE;
ns_triplets = XML_FALSE;
- parserInit(parser, encodingName);
- dtdInit(&dtd, parser);
poolInit(&tempPool, &(parser->m_mem));
poolInit(&temp2Pool, &(parser->m_mem));
+ parserInit(parser, encodingName);
+ dtdInit(&dtd, parser);
if (!atts || !dataBuf || (encodingName && !protocolEncodingName)) {
XML_ParserFree(parser);