summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2018-05-28 14:58:39 (GMT)
committerBoris Kolpackov <boris@codesynthesis.com>2018-05-28 14:58:39 (GMT)
commit98184da5d1e017a0be3d07242c627813f21b2ff1 (patch)
treef4367925e3c9a94ca1f34e11ee9ff3f26e5aeedc
parenta2106e4e29e81d775e42587dbc4d697e943359f2 (diff)
Backport fix for GCC 8 warning from 3.23.1
-rw-r--r--libsqlite3/sqlite3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsqlite3/sqlite3.c b/libsqlite3/sqlite3.c
index 1eab5a8..e14c3ba 100644
--- a/libsqlite3/sqlite3.c
+++ b/libsqlite3/sqlite3.c
@@ -194486,7 +194486,7 @@ static int sqlite3Fts5IndexQuery(
if( sqlite3Fts5BufferSize(&p->rc, &buf, nToken+1)==0 ){
int iIdx = 0; /* Index to search */
- memcpy(&buf.p[1], pToken, nToken);
+ if( nToken ) memcpy(&buf.p[1], pToken, nToken);
/* Figure out which index to search and set iIdx accordingly. If this
** is a prefix query for which there is no prefix index, set iIdx to