1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00

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
This commit is contained in:
Daniel Veillard 2003-11-03 17:13:52 +00:00
parent a8ff65d784
commit 798ae54344
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Mon Nov 3 17:51:28 CET 2003 Daniel Veillard <daniel@veillard.com>
* xinclude.c: fixed bug #125812, about XPointer in XInclude
failing but not returning an error.
Mon Nov 3 17:18:22 CET 2003 Daniel Veillard <daniel@veillard.com>
* valid.c: fixed bug #125811 related to DTD post validation

View File

@ -1394,6 +1394,13 @@ loaded:
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;