diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index f42712e0..9deaec23 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -678,10 +678,10 @@ XML_ParserCreate_MM(const XML_Char *encodingName, 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);