mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-05 13:14:59 +00:00
Fix bug in XML_SetEncoding
This commit is contained in:
parent
845dd4dd8b
commit
7023da1906
1 changed files with 1 additions and 1 deletions
|
@ -470,7 +470,7 @@ XML_Parser XML_ParserCreateNS(const XML_Char *encodingName, XML_Char nsSep)
|
|||
|
||||
int XML_SetEncoding(XML_Parser parser, const XML_Char *encodingName)
|
||||
{
|
||||
if (encodingName)
|
||||
if (!encodingName)
|
||||
protocolEncodingName = 0;
|
||||
else {
|
||||
protocolEncodingName = poolCopyString(&tempPool, encodingName);
|
||||
|
|
Loading…
Add table
Reference in a new issue