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:
@ -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;
|
||||
|
Reference in New Issue
Block a user