From d43cdcd6a27f720256ad7f008d36b74eee569b4e Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Tue, 3 Aug 2004 15:13:29 +0000 Subject: [PATCH] fixed initialisation problem for htmlReadMemory (bug 149041) * HTMLparser.c: fixed initialisation problem for htmlReadMemory (bug 149041) --- ChangeLog | 5 +++++ HTMLparser.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index b9829a1b..b87163c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 3 08:14:44 PDT 2004 William Brack + + * HTMLparser.c: fixed initialisation problem for htmlReadMemory + (bug 149041) + Sat Jul 31 11:01:33 PDT 2004 William Brack * doc/buildDocBookCatalog: enhanced per bug 119876. Further diff --git a/HTMLparser.c b/HTMLparser.c index d8230669..309d93c6 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -5648,6 +5648,8 @@ htmlReadMemory(const char *buffer, int size, const char *URL, const char *encodi 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)); }