xmllint: Stop calling xmlSAXDefaultVersion

This should already be handled by setting XML_PARSE_SAX1.
This commit is contained in:
Nick Wellnhofer 2022-08-24 05:24:13 +02:00
parent 9a82b94a94
commit ce93ee9051

View File

@ -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);