expat/lib xmlparse.c,1.75,1.76

"Karl Waclawek" <[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-serv27478

Modified Files:
	xmlparse.c 
Log Message:
The previous fix should also be applied to XML_ParserReset.

Index: xmlparse.c
===================================================================
RCS file: /cvsroot/expat/expat/lib/xmlparse.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -d -r1.75 -r1.76
--- xmlparse.c	27 Aug 2002 20:24:19 -0000	1.75
+++ xmlparse.c	27 Aug 2002 20:32:41 -0000	1.76
@@ -809,10 +809,10 @@
     FREE(unknownEncodingMem);
   if (unknownEncodingRelease)
     unknownEncodingRelease(unknownEncodingData);
-  parserInit(parser, encodingName);
-  dtdReset(&dtd, parser);
   poolClear(&tempPool);
   poolClear(&temp2Pool);
+  parserInit(parser, encodingName);
+  dtdReset(&dtd, parser);
   return XML_TRUE;
 }
 
@@ -5229,11 +5229,11 @@
 static void
 poolInit(STRING_POOL *pool, XML_Memory_Handling_Suite *ms)
 {
-  pool->blocks = 0;
-  pool->freeBlocks = 0;
-  pool->start = 0;
-  pool->ptr = 0;
-  pool->end = 0;
+  pool->blocks = NULL;
+  pool->freeBlocks = NULL;
+  pool->start = NULL;
+  pool->ptr = NULL;
+  pool->end = NULL;
   pool->mem = ms;
 }
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.