diff options
author | Gaurav <g.gupta@samsung.com> | 2013-11-28 23:01:44 +0800 |
---|---|---|
committer | Daniel Veillard <veillard@redhat.com> | 2013-11-28 23:01:44 +0800 |
commit | fcd458318916809edc4fc4cd1ce2d5ba9aed4665 (patch) | |
tree | b8b9aa004c5a495338b577aae3afa661947c6ad6 /xpath.c | |
parent | f3d79416d792ee879b952430fc8e3311c050e218 (diff) | |
download | libxml2-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |