summaryrefslogtreecommitdiff
path: root/chromium/third_party/sqlite/patches/0004-Remove-reachable-NEVER-in-fts3.patch
blob: efa0441c74048ab5a378e51d1d6ee8e24818ef7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Darwin Huang <huangdarwin@chromium.org>
Date: Tue, 19 Nov 2019 15:05:43 -0800
Subject: [PATCH 4/8] Remove reachable NEVER in fts3

Backports https://www.sqlite.org/src/info/8bd75bf636f72f32

Bug: 1025471
---
 third_party/sqlite/patched/ext/fts3/fts3_write.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/third_party/sqlite/patched/ext/fts3/fts3_write.c b/third_party/sqlite/patched/ext/fts3/fts3_write.c
index c28358c17479..11ac562a17f8 100644
--- a/third_party/sqlite/patched/ext/fts3/fts3_write.c
+++ b/third_party/sqlite/patched/ext/fts3/fts3_write.c
@@ -3850,7 +3850,7 @@ static int fts3IncrmergePush(
     ** be added to.  */
     nPrefix = fts3PrefixCompress(pNode->key.a, pNode->key.n, zTerm, nTerm);
     nSuffix = nTerm - nPrefix;
-    if( NEVER(nSuffix<=0) ) return FTS_CORRUPT_VTAB;
+    if(nSuffix<=0 ) return FTS_CORRUPT_VTAB;
     nSpace  = sqlite3Fts3VarintLen(nPrefix);
     nSpace += sqlite3Fts3VarintLen(nSuffix) + nSuffix;
 
-- 
2.24.0.432.g9d3f5f5b63-goog