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

svn path=/trunk/; revision=3610
This commit is contained in:
Daniel Veillard
2007-04-27 09:33:58 +00:00
parent 4d1320fa5b
commit 739e9d0981

View File

@ -4399,7 +4399,8 @@ htmlCreateDocParserCtxt(const xmlChar *cur, const char *encoding) {
return(NULL);
len = xmlStrlen(cur);
ctxt = htmlCreateMemoryParserCtxt((char *)cur, len);
return(NULL);
if (ctxt == NULL)
return(NULL);
if (encoding != NULL) {
xmlCharEncoding enc;