From 7a985a18c2fee0aa9b490792dd990b75506e3740 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sun, 6 Jul 2003 17:57:42 +0000 Subject: fixed 2 bugs pointed in #116448 Daniel * debugXML.c xpath.c: fixed 2 bugs pointed in #116448 Daniel --- xpath.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xpath.c') 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++; -- cgit v1.2.3