When creating an external entity parser, don't set the processor if the encoding was unknown.

This commit is contained in:
James Clark 1998-05-11 00:59:52 +00:00
parent 5d0c27b76c
commit 0317338f10

View File

@ -316,7 +316,9 @@ XML_Parser XML_ExternalEntityParserCreate(XML_Parser oldParser,
return 0;
}
if (errorCode != XML_ERROR_UNKNOWN_ENCODING)
processor = externalEntityInitProcessor;
return parser;
}