summaryrefslogtreecommitdiff
path: root/xpath.c
diff options
context:
space:
mode:
authorGaurav <g.gupta@samsung.com>2013-11-28 23:01:44 +0800
committerDaniel Veillard <veillard@redhat.com>2013-11-28 23:01:44 +0800
commitfcd458318916809edc4fc4cd1ce2d5ba9aed4665 (patch)
treeb8b9aa004c5a495338b577aae3afa661947c6ad6 /xpath.c
parentf3d79416d792ee879b952430fc8e3311c050e218 (diff)
downloadlibxml2-fcd458318916809edc4fc4cd1ce2d5ba9aed4665.tar.gz
Fix XPath node comparison bug
For https://bugzilla.gnome.org/show_bug.cgi?id=715143
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 b4cdcdc8..1f56b965 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;