From 739e9d0981e646481356a3b2f6d5bad3233668cc Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 27 Apr 2007 09:33:58 +0000 Subject: [PATCH] Dohh ! Daniel svn path=/trunk/; revision=3610 --- HTMLparser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HTMLparser.c b/HTMLparser.c index 0acaecc7..693b4d23 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -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;