summaryrefslogtreecommitdiff
path: root/debian/patches/0014-Fix-XPath-optimization-with-predicates.patch
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2015-10-19 15:39:54 +0300
committerIgor Pashev <pashev.igor@gmail.com>2015-10-19 15:39:54 +0300
commit76d018a8af27653c40229684724c185830b1c482 (patch)
tree4765d32bae0948b8e929564d6eba54de1675b7a3 /debian/patches/0014-Fix-XPath-optimization-with-predicates.patch
parent5beef1c7a526e014a37ca8a422911e574d3e6951 (diff)
parent76c19f4d5b3328c05649314336d27c1f44a49e96 (diff)
downloadlibxml2-76d018a8af27653c40229684724c185830b1c482.tar.gz
Merge branch 'master' of git://anonscm.debian.org/debian-xml-sgml/libxml2
Diffstat (limited to 'debian/patches/0014-Fix-XPath-optimization-with-predicates.patch')
-rw-r--r--debian/patches/0014-Fix-XPath-optimization-with-predicates.patch27
1 files changed, 0 insertions, 27 deletions
diff --git a/debian/patches/0014-Fix-XPath-optimization-with-predicates.patch b/debian/patches/0014-Fix-XPath-optimization-with-predicates.patch
deleted file mode 100644
index f24424a..0000000
--- a/debian/patches/0014-Fix-XPath-optimization-with-predicates.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From: Nick Wellnhofer <wellnhofer@aevum.de>
-Date: Sun, 4 Aug 2013 22:15:11 +0000
-Subject: Fix XPath '//' optimization with predicates
-
-My attempt to optimize XPath expressions containing '//' caused a
-regression reported in bug #695699. This commit disables the
-optimization for expressions of the form '//foo[predicate]'.
----
- xpath.c | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/xpath.c b/xpath.c
-index 97410e7..a676989 100644
---- a/xpath.c
-+++ b/xpath.c
-@@ -14719,8 +14719,9 @@ xmlXPathOptimizeExpression(xmlXPathCompExprPtr comp, xmlXPathStepOpPtr op)
- * internal representation.
- */
-
-- if ((op->ch1 != -1) &&
-- (op->op == XPATH_OP_COLLECT /* 11 */))
-+ if ((op->op == XPATH_OP_COLLECT /* 11 */) &&
-+ (op->ch1 != -1) &&
-+ (op->ch2 == -1 /* no predicate */))
- {
- xmlXPathStepOpPtr prevop = &comp->steps[op->ch1];
-