Fix bug with encoding declaration in prolog.

This commit is contained in:
James Clark 1999-07-06 00:48:04 +00:00
parent 99a358f0c0
commit b1b875e78e

View file

@ -2196,6 +2196,7 @@ doProlog(XML_Parser parser,
enum XML_Error result = processXmlDecl(parser, 0, s, next);
if (result != XML_ERROR_NONE)
return result;
enc = encoding;
}
break;
#ifdef XML_DTD
@ -2204,6 +2205,7 @@ doProlog(XML_Parser parser,
enum XML_Error result = processXmlDecl(parser, 1, s, next);
if (result != XML_ERROR_NONE)
return result;
enc = encoding;
}
break;
#endif /* XML_DTD */