[libxml2] xmllint: Stop calling xmlSAXDefaultVersion



commit ce93ee90518811db96d5b24c543fda6c948f0288
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Wed Aug 24 05:24:13 2022 +0200

    xmllint: Stop calling xmlSAXDefaultVersion
    
    This should already be handled by setting XML_PARSE_SAX1.

 xmllint.c | 7 -------
 1 file changed, 7 deletions(-)
---
diff --git a/xmllint.c b/xmllint.c
index 0da4a9d8..fb3f3fbd 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -3478,13 +3478,6 @@ main(int argc, char **argv) {
     }
 #endif
 
-#ifdef LIBXML_SAX1_ENABLED
-    if (sax1)
-        xmlSAXDefaultVersion(1);
-    else
-        xmlSAXDefaultVersion(2);
-#endif /* LIBXML_SAX1_ENABLED */
-
     if (chkregister) {
        xmlRegisterNodeDefault(registerNode);
        xmlDeregisterNodeDefault(deregisterNode);


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