]> granicus.if.org Git - libexpat/commitdiff
Fix for bug #584832: incorrect handling of internal entities.
authorKarl Waclawek <kwaclaw@users.sourceforge.net>
Mon, 22 Jul 2002 13:32:37 +0000 (13:32 +0000)
committerKarl Waclawek <kwaclaw@users.sourceforge.net>
Mon, 22 Jul 2002 13:32:37 +0000 (13:32 +0000)
The wrong string pool was cleared.

expat/lib/xmlparse.c

index b66fbf577d1608c9c679658afed0641ab6726a74..c96c0382a7924fb5eded97e36ad5c4efcadd4431 100644 (file)
@@ -2700,7 +2700,7 @@ processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
           return XML_ERROR_NO_MEMORY;
       }
       result = handleUnknownEncoding(parser, storedEncName);
-      poolClear(&tempPool);
+      poolClear(&temp2Pool);
       if (result == XML_ERROR_UNKNOWN_ENCODING)
         eventPtr = encodingName;
       return result;