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

fixed problem with string value for PI node (bug #442275)

* xpath.c: fixed problem with string value for PI node
  (bug #442275)

svn path=/trunk/; revision=3621
This commit is contained in:
William M. Brack 2007-05-31 05:07:17 +00:00
parent e61d75f11e
commit d611c88a01
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed May 30 22:05:08 PDT 2007 William Brack <wbrack@mmm.com.hk>
* xpath.c: fixed problem with string value for PI node
(bug #442275)
Mon May 28 16:14:50 CEST 2007 Daniel Veillard <daniel@veillard.com>
* uri.c: fix bug reported by François Delyon

View File

@ -5583,7 +5583,10 @@ xmlXPathCastNumberToString (double val) {
*/
xmlChar *
xmlXPathCastNodeToString (xmlNodePtr node) {
return(xmlNodeGetContent(node));
xmlChar *ret;
if ((ret = xmlNodeGetContent(node)) == NULL)
ret = xmlStrdup((const xmlChar *) "");
return(ret);
}
/**