summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmllint.c b/xmllint.c
index 001e6e88..0cbc3d19 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -1607,8 +1607,10 @@ testSAX(const char *filename) {
if (noout) {
handler = emptySAXHandler;
+#ifdef LIBXML_SAX1_ENABLED
} else if (sax1) {
handler = debugSAXHandler;
+#endif
} else {
handler = debugSAX2Handler;
}