mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +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:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 26 10:58:50 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
|
* HTMLparser.c: Jean-Daniel Dupas pointed a couple of problems
|
||||||
|
in htmlCreateDocParserCtxt.
|
||||||
|
|
||||||
Thu Apr 26 10:36:26 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
Thu Apr 26 10:36:26 CEST 2007 Daniel Veillard <daniel@veillard.com>
|
||||||
|
|
||||||
* uri.c include/libxml/uri.h: patch from Richard Jones to save
|
* uri.c include/libxml/uri.h: patch from Richard Jones to save
|
||||||
|
@ -4391,8 +4391,7 @@ htmlCreateMemoryParserCtxt(const char *buffer, int size) {
|
|||||||
* Returns the new parser context or NULL
|
* Returns the new parser context or NULL
|
||||||
*/
|
*/
|
||||||
static htmlParserCtxtPtr
|
static htmlParserCtxtPtr
|
||||||
htmlCreateDocParserCtxt(const xmlChar *cur,
|
htmlCreateDocParserCtxt(const xmlChar *cur, const char *encoding) {
|
||||||
const char *encoding ATTRIBUTE_UNUSED) {
|
|
||||||
int len;
|
int len;
|
||||||
htmlParserCtxtPtr ctxt;
|
htmlParserCtxtPtr ctxt;
|
||||||
|
|
||||||
@ -4400,6 +4399,7 @@ htmlCreateDocParserCtxt(const xmlChar *cur,
|
|||||||
return(NULL);
|
return(NULL);
|
||||||
len = xmlStrlen(cur);
|
len = xmlStrlen(cur);
|
||||||
ctxt = htmlCreateMemoryParserCtxt((char *)cur, len);
|
ctxt = htmlCreateMemoryParserCtxt((char *)cur, len);
|
||||||
|
return(NULL);
|
||||||
|
|
||||||
if (encoding != NULL) {
|
if (encoding != NULL) {
|
||||||
xmlCharEncoding enc;
|
xmlCharEncoding enc;
|
||||||
|
Reference in New Issue
Block a user