expat/lib xmlparse.c,1.74,1.75

"Fred L. Drake" <[email protected]>
Newsgroups gmane.text.xml.expat.cvs
Message-ID <[email protected]>
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);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.