diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-28 16:58:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-05-28 16:58:39 +0200 |
commit | 98184da5d1e017a0be3d07242c627813f21b2ff1 (patch) | |
tree | f4367925e3c9a94ca1f34e11ee9ff3f26e5aeedc /libsqlite3/sqlite3.c | |
parent | a2106e4e29e81d775e42587dbc4d697e943359f2 (diff) |
Backport fix for GCC 8 warning from 3.23.1
Diffstat (limited to 'libsqlite3/sqlite3.c')
-rw-r--r-- | libsqlite3/sqlite3.c | 2 |
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 |