summaryrefslogtreecommitdiff
path: root/upstream/sqlite3.c.patch
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2019-03-11 16:47:49 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2019-03-11 16:47:49 +0300
commit3d3a63d289cdaa8bc4d4a3820d499ea5a3205b43 (patch)
treee608c7ebe88503c670fcec02b6db5f54a6843dd2 /upstream/sqlite3.c.patch
parentaa5ecc3b21bf88c5b9b9c17912e4efbd96eeab34 (diff)
Release version 3.18.2+7v3.18.2
Place libsqlite3 and sqlite3 packages into single repository.
Diffstat (limited to 'upstream/sqlite3.c.patch')
-rw-r--r--upstream/sqlite3.c.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/upstream/sqlite3.c.patch b/upstream/sqlite3.c.patch
new file mode 100644
index 0000000..3935365
--- /dev/null
+++ b/upstream/sqlite3.c.patch
@@ -0,0 +1,19 @@
+--- sqlite3.c.orig 2019-03-09 21:21:39.522049549 +0300
++++ sqlite3.c 2019-01-16 21:46:55.113927913 +0300
+@@ -27001,6 +27001,7 @@ SQLITE_PRIVATE int sqlite3ThreadJoin(SQL
+ assert( rc!=WAIT_IO_COMPLETION );
+ bRc = CloseHandle((HANDLE)p->tid);
+ assert( bRc );
++ (void)bRc; /* Unused. */
+ }
+ if( rc==WAIT_OBJECT_0 ) *ppOut = p->pResult;
+ sqlite3_free(p);
+@@ -194485,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