fixed bug #125812, about XPointer in XInclude failing but not returning an
* xinclude.c: fixed bug #125812, about XPointer in XInclude
failing but not returning an error.
Daniel
diff --git a/xinclude.c b/xinclude.c
index 6358f1e..f4d6aee 100644
--- a/xinclude.c
+++ b/xinclude.c
@@ -1394,6 +1394,13 @@
xmlFree(fragment);
return(-1);
case XPATH_NODESET:
+ if ((xptr->nodesetval == NULL) ||
+ (xptr->nodesetval->nodeNr <= 0)) {
+ xmlXPathFreeContext(xptrctxt);
+ xmlFree(URL);
+ xmlFree(fragment);
+ return(-1);
+ }
case XPATH_RANGE:
case XPATH_LOCATIONSET:
break;