mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 21:24:59 +00:00
When creating an external entity parser, don't set the processor if the encoding was unknown.
This commit is contained in:
parent
5d0c27b76c
commit
0317338f10
1 changed files with 3 additions and 1 deletions
|
@ -316,7 +316,9 @@ XML_Parser XML_ExternalEntityParserCreate(XML_Parser oldParser,
|
|||
return 0;
|
||||
}
|
||||
|
||||
processor = externalEntityInitProcessor;
|
||||
if (errorCode != XML_ERROR_UNKNOWN_ENCODING)
|
||||
processor = externalEntityInitProcessor;
|
||||
|
||||
return parser;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue