fixed initialisation problem for htmlReadMemory (bug 149041)

* HTMLparser.c: fixed initialisation problem for htmlReadMemory
  (bug 149041)
diff --git a/HTMLparser.c b/HTMLparser.c
index d823066..309d93c 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -5648,6 +5648,8 @@
     ctxt = xmlCreateMemoryParserCtxt(buffer, size);
     if (ctxt == NULL)
         return (NULL);
+    if (ctxt->sax != NULL)
+        memcpy(ctxt->sax, &htmlDefaultSAXHandler, sizeof(xmlSAXHandlerV1));
     return (htmlDoRead(ctxt, URL, encoding, options, 0));
 }