aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2001-02-19 10:00:53 +0000
committerDaniel Veillard <veillard@src.gnome.org>2001-02-19 10:00:53 +0000
commit88f8f6f374d0f261aba413791675fdcbed4eaf5e (patch)
tree2c1af382be8ca6cd2e8766db4b827994bae45422 /xpath.c
parentfd9b09b2812e7814af77a73d2d034ed09702240a (diff)
downloadandroid_external_libxml2-88f8f6f374d0f261aba413791675fdcbed4eaf5e.tar.gz
android_external_libxml2-88f8f6f374d0f261aba413791675fdcbed4eaf5e.tar.bz2
android_external_libxml2-88f8f6f374d0f261aba413791675fdcbed4eaf5e.zip
- xpath.c: fixed "*" (unbelievable !) and a couple of warnings
Daniel
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/xpath.c b/xpath.c
index 148ebe2b..57ca1437 100644
--- a/xpath.c
+++ b/xpath.c
@@ -3309,7 +3309,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, xmlXPathAxisVal axis,
#ifdef DEBUG_STEP
n++;
#endif
- addNode(ret, attr);
+ addNode(ret, (xmlNodePtr) attr);
}
} else {
if ((attr->ns != NULL) &&
@@ -3318,7 +3318,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt, xmlXPathAxisVal axis,
#ifdef DEBUG_STEP
n++;
#endif
- addNode(ret, attr);
+ addNode(ret, (xmlNodePtr) attr);
}
}
}
@@ -5149,6 +5149,9 @@ xmlXPathEvalPathExpr(xmlXPathParserContextPtr ctxt) {
if ((CUR == '$') || (CUR == '(') || (IS_DIGIT(CUR)) ||
(CUR == '\'') || (CUR == '"')) {
lc = 0;
+ } else if (CUR == '*') {
+ /* relative or absolute location path */
+ lc = 1;
} else if (CUR == '/') {
/* relative or absolute location path */
lc = 1;