commit | d43cdcd6a27f720256ad7f008d36b74eee569b4e | [log] [tgz] |
---|---|---|
author | William M. Brack <wbrack@src.gnome.org> | Tue Aug 03 15:13:29 2004 +0000 |
committer | William M. Brack <wbrack@src.gnome.org> | Tue Aug 03 15:13:29 2004 +0000 |
tree | 73b3e0c78317bb0d555373b03d45bac6ac08d930 | |
parent | 6ca9ec82ce70ded95c454a5aecc30d49e0aaa0b0 [diff] [blame] |
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)); }