mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-08-07 06:43:02 +03:00
Richard Jinks spotted an incoherent memory allocation behaviour in
* xpath.c: Richard Jinks spotted an incoherent memory allocation behaviour in xmlXPathCastToString() Daniel
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
Fri Mar 22 13:22:09 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* xpath.c: Richard Jinks spotted an incoherent memory allocation
|
||||
behaviour in xmlXPathCastToString()
|
||||
|
||||
Thu Mar 21 14:25:29 CET 2002 Daniel Veillard <daniel@veillard.com>
|
||||
|
||||
* encoding.c: fixed a bug in the ISO-Latin 1 to UTF8 encoder
|
||||
|
2
xpath.c
2
xpath.c
@@ -3237,7 +3237,7 @@ xmlXPathCastToString(xmlXPathObjectPtr val) {
|
||||
ret = xmlXPathCastNodeSetToString(val->nodesetval);
|
||||
break;
|
||||
case XPATH_STRING:
|
||||
return(val->stringval);
|
||||
return(xmlStrdup(val->stringval));
|
||||
case XPATH_BOOLEAN:
|
||||
ret = xmlXPathCastBooleanToString(val->boolval);
|
||||
break;
|
||||
|
Reference in New Issue
Block a user