aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-07-06 17:57:42 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-07-06 17:57:42 +0000
commit7a985a18c2fee0aa9b490792dd990b75506e3740 (patch)
tree9e5e5e4f8ac3dc25855d13417d1196aa40d2630d /xpath.c
parentffe4f5ec164ee30b0955584ef204a5ff0c413a8a (diff)
downloadandroid_external_libxml2-7a985a18c2fee0aa9b490792dd990b75506e3740.tar.gz
android_external_libxml2-7a985a18c2fee0aa9b490792dd990b75506e3740.tar.bz2
android_external_libxml2-7a985a18c2fee0aa9b490792dd990b75506e3740.zip
fixed 2 bugs pointed in #116448 Daniel
* debugXML.c xpath.c: fixed 2 bugs pointed in #116448 Daniel
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xpath.c b/xpath.c
index e6e3e1ee..92d68de7 100644
--- a/xpath.c
+++ b/xpath.c
@@ -5942,6 +5942,8 @@ xmlXPathGetElementsByIds (xmlDocPtr doc, const xmlChar *ids) {
xmlAttrPtr attr;
xmlNodePtr elem = NULL;
+ if (ids == NULL) return(NULL);
+
ret = xmlXPathNodeSetCreate(NULL);
while (IS_BLANK(*cur)) cur++;