aboutsummaryrefslogtreecommitdiffstats
path: root/include/libxml/xpathInternals.h
diff options
context:
space:
mode:
authorWilliam M. Brack <wbrack@src.gnome.org>2003-12-20 02:10:28 +0000
committerWilliam M. Brack <wbrack@src.gnome.org>2003-12-20 02:10:28 +0000
commit966668a703de347886cf1110537b6954a903fb68 (patch)
treea04925ec5105481aed023cf6f20bd7e41e72e7f0 /include/libxml/xpathInternals.h
parentf40c1ce95d3284cd6d3cbf49b6d4448cc750f3ea (diff)
downloadandroid_external_libxml2-966668a703de347886cf1110537b6954a903fb68.tar.gz
android_external_libxml2-966668a703de347886cf1110537b6954a903fb68.tar.bz2
android_external_libxml2-966668a703de347886cf1110537b6954a903fb68.zip
fixed xmlXPathReturnString to cater for NULL pointer (bug 129561) added
* include/libxml/xpathInternals.h: fixed xmlXPathReturnString to cater for NULL pointer (bug 129561) * globals.c: added comment to suppress documentation warning * doc/apibuild.py: fixed problem which caused last APIchunkxx.html to be lost. Rebuilt doc/* (including adding APIchunk26.html)
Diffstat (limited to 'include/libxml/xpathInternals.h')
-rw-r--r--include/libxml/xpathInternals.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libxml/xpathInternals.h b/include/libxml/xpathInternals.h
index 75e5d742..37c46a5e 100644
--- a/include/libxml/xpathInternals.h
+++ b/include/libxml/xpathInternals.h
@@ -153,7 +153,8 @@ XMLPUBFUN void * XMLCALL
* Pushes the string @str on the context stack.
*/
#define xmlXPathReturnString(ctxt, str) \
- valuePush((ctxt), xmlXPathWrapString(str))
+ (str) == NULL ? valuePush((ctxt), xmlXPathNewCString("")) : \
+ valuePush((ctxt), xmlXPathWrapString(str))
/**
* xmlXPathReturnEmptyString: