1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-28 00:21:53 +03:00

Jean-Daniel Dupas pointed a couple of problems in htmlCreateDocParserCtxt.

* HTMLparser.c: Jean-Daniel Dupas pointed a couple of problems
  in htmlCreateDocParserCtxt.
Daniel

svn path=/trunk/; revision=3609
This commit is contained in:
Daniel Veillard
2007-04-26 08:55:33 +00:00
parent 63cf1b9909
commit 4d1320fa5b
2 changed files with 7 additions and 2 deletions

View File

@ -4391,8 +4391,7 @@ htmlCreateMemoryParserCtxt(const char *buffer, int size) {
* Returns the new parser context or NULL
*/
static htmlParserCtxtPtr
htmlCreateDocParserCtxt(const xmlChar *cur,
const char *encoding ATTRIBUTE_UNUSED) {
htmlCreateDocParserCtxt(const xmlChar *cur, const char *encoding) {
int len;
htmlParserCtxtPtr ctxt;
@ -4400,6 +4399,7 @@ htmlCreateDocParserCtxt(const xmlChar *cur,
return(NULL);
len = xmlStrlen(cur);
ctxt = htmlCreateMemoryParserCtxt((char *)cur, len);
return(NULL);
if (encoding != NULL) {
xmlCharEncoding enc;