[libxml2] Fix XPath node comparison bug



commit fcd458318916809edc4fc4cd1ce2d5ba9aed4665
Author: Gaurav <g gupta samsung com>
Date:   Thu Nov 28 23:01:44 2013 +0800

    Fix XPath node comparison bug
    
    For https://bugzilla.gnome.org/show_bug.cgi?id=715143

 xpath.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/xpath.c b/xpath.c
index b4cdcdc..1f56b96 100644
--- a/xpath.c
+++ b/xpath.c
@@ -267,7 +267,7 @@ xmlXPathCmpNodesExt(xmlNodePtr node1, xmlNodePtr node2) {
                node2 = node2->parent;
            }
            if ((node2 == NULL) || (node2->type != XML_ELEMENT_NODE) ||
-               (0 <= (long) node1->content))
+               (0 <= (long) node2->content))
            {
                node2 = miscNode2;
                precedence2 = 0;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]