1 From fb15433301dc736ecee87970314ddad779cb284e Mon Sep 17 00:00:00 2001
2 From: Scott Hess <shess@chromium.org>
3 Date: Thu, 12 Feb 2015 15:01:26 -0800
4 Subject: [PATCH] [fts3] Fix uninit variable in fts3EvalDeferredPhrase.
6 Chromium compiles with SQLITE_DISABLE_FTS4_DEFERRED since fts4 is
7 disabled. That compiles away sqlite3Fts3DeferredTokenList() which
8 otherwise initialized pList and nList in fts3EvalDeferredPhrase().
13 third_party/sqlite/src/ext/fts3/fts3.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
16 diff --git a/third_party/sqlite/src/ext/fts3/fts3.c b/third_party/sqlite/src/ext/fts3/fts3.c
17 index 3a1152d..c43f369 100644
18 --- a/third_party/sqlite/src/ext/fts3/fts3.c
19 +++ b/third_party/sqlite/src/ext/fts3/fts3.c
20 @@ -4038,8 +4038,8 @@ static int fts3EvalDeferredPhrase(Fts3Cursor *pCsr, Fts3Phrase *pPhrase){
21 Fts3DeferredToken *pDeferred = pToken->pDeferred;
28 int rc = sqlite3Fts3DeferredTokenList(pDeferred, &pList, &nList);
29 if( rc!=SQLITE_OK ) return rc;