[libxml2] Fix --without-debug build
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2] Fix --without-debug build
- Date: Wed, 9 Mar 2022 22:13:03 +0000 (UTC)
commit 8d06ccd47959e3fd10e49ebb7582d73c5fc9f1dd
Author: Nick Wellnhofer <wellnhofer aevum de>
Date: Wed Mar 9 22:36:51 2022 +0100
Fix --without-debug build
Broken in commit 2cc93f77.
Fixes #354.
schematron.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/schematron.c b/schematron.c
index debadba4..19a3d39a 100644
--- a/schematron.c
+++ b/schematron.c
@@ -33,7 +33,6 @@
#include <libxml/xpathInternals.h>
#include <libxml/pattern.h>
#include <libxml/schematron.h>
-#include <libxml/debugXML.h>
#define SCHEMATRON_PARSE_OPTIONS XML_PARSE_NOENT
@@ -1497,9 +1496,11 @@ xmlSchematronFormatReport(xmlSchematronValidCtxtPtr ctxt,
}
break;
}
- case XPATH_BOOLEAN:
- ret = xmlStrcat(ret, BAD_CAST xmlBoolToText(eval->boolval));
+ case XPATH_BOOLEAN: {
+ const char *str = eval->boolval ? "True" : "False";
+ ret = xmlStrcat(ret, BAD_CAST str);
break;
+ }
case XPATH_NUMBER: {
xmlChar *buf;
int size;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]