Fix bug in XML_SetEncoding

This commit is contained in:
James Clark 1998-11-27 02:56:32 +00:00
parent 845dd4dd8b
commit 7023da1906

View file

@ -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);