[libxml2] Remove useless call to htmlDefaultSAXHandlerInit



commit d45263a262e1697928986ff780753d9e68876373
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Wed Aug 24 14:04:35 2022 +0200

    Remove useless call to htmlDefaultSAXHandlerInit
    
    This function is already called from xmlInitParser.

 HTMLparser.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/HTMLparser.c b/HTMLparser.c
index b270ce46..54f712dc 100644
--- a/HTMLparser.c
+++ b/HTMLparser.c
@@ -4910,8 +4910,6 @@ htmlParseDocument(htmlParserCtxtPtr ctxt) {
 
     xmlInitParser();
 
-    htmlDefaultSAXHandlerInit();
-
     if ((ctxt == NULL) || (ctxt->input == NULL)) {
        htmlParseErr(ctxt, XML_ERR_INTERNAL_ERROR,
                     "htmlParseDocument: context error\n", NULL, NULL);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]