From e3bfa4a70aefbf9416016fd1336796fc8735af74 Mon Sep 17 00:00:00 2001 From: Karl Waclawek Date: Wed, 9 Oct 2002 13:21:45 +0000 Subject: [PATCH] Applied patch for bug # 620106. --- expat/lib/xmlparse.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index b834d1ae..0dcf61df 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -617,7 +617,16 @@ struct XML_ParserStruct { #define paramEntityParsing (parser->m_paramEntityParsing) #endif /* XML_DTD */ -#define parsing (processor != prologInitProcessor) +#define parsing \ + (parentParser \ + ? \ + (isParamEntity \ + ? \ + (processor != externalParEntInitProcessor) \ + : \ + (processor != externalEntityInitProcessor)) \ + : \ + (processor != prologInitProcessor)) XML_Parser XML_ParserCreate(const XML_Char *encodingName)