aboutsummaryrefslogtreecommitdiffstats
path: root/xpath.c
diff options
context:
space:
mode:
authorThomas Broyer <tbroyer@src.gnome.org>2001-07-31 23:30:37 +0000
committerThomas Broyer <tbroyer@src.gnome.org>2001-07-31 23:30:37 +0000
commitf186c8259ae985cd56b3e14c1def484ab127fd14 (patch)
tree8a9298f82936887ba0fbbd910437c49e3e2dbb88 /xpath.c
parentba6db03c40b3ac223695fe08e96744ab389c6dab (diff)
downloadandroid_external_libxml2-f186c8259ae985cd56b3e14c1def484ab127fd14.tar.gz
android_external_libxml2-f186c8259ae985cd56b3e14c1def484ab127fd14.tar.bz2
android_external_libxml2-f186c8259ae985cd56b3e14c1def484ab127fd14.zip
fixed a bug in xmlXPathNodeTrailingSorted (for now it worked like the
* xpath.c: fixed a bug in xmlXPathNodeTrailingSorted (for now it worked like the set:leading() function) * include/libxml/xpathInternals.h: added xmlXPathNodeSetContains
Diffstat (limited to 'xpath.c')
-rw-r--r--xpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xpath.c b/xpath.c
index 5404577d..51899ea3 100644
--- a/xpath.c
+++ b/xpath.c
@@ -2186,7 +2186,7 @@ xmlXPathNodeTrailingSorted (xmlNodeSetPtr nodes, xmlNodePtr node) {
return(ret);
l = xmlXPathNodeSetGetLength(nodes);
- for (i = 0; i < l; i++) {
+ for (i = l; i > 0; i--) {
cur = xmlXPathNodeSetItem(nodes, i);
if (cur == node)
break;