forked from pool/libxml2
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libxml2?expand=0&rev=248
14 lines
554 B
Diff
14 lines
554 B
Diff
Index: libxml2-2.13.8/schematron.c
|
|
===================================================================
|
|
--- libxml2-2.13.8.orig/schematron.c
|
|
+++ libxml2-2.13.8/schematron.c
|
|
@@ -1509,6 +1509,8 @@ xmlSchematronFormatReport(xmlSchematronV
|
|
select = xmlGetNoNsProp(child, BAD_CAST "select");
|
|
comp = xmlXPathCtxtCompile(ctxt->xctxt, select);
|
|
eval = xmlXPathCompiledEval(comp, ctxt->xctxt);
|
|
+ if (eval == NULL)
|
|
+ return ret;
|
|
|
|
switch (eval->type) {
|
|
case XPATH_NODESET: {
|