diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-02-19 10:00:53 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-02-19 10:00:53 +0000 |
commit | 88f8f6f374d0f261aba413791675fdcbed4eaf5e (patch) | |
tree | 2c1af382be8ca6cd2e8766db4b827994bae45422 /xpath.c | |
parent | fd9b09b2812e7814af77a73d2d034ed09702240a (diff) | |
download | android_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.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |