From 3d3a63d289cdaa8bc4d4a3820d499ea5a3205b43 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 11 Mar 2019 16:47:49 +0300 Subject: Release version 3.18.2+7 Place libsqlite3 and sqlite3 packages into single repository. --- upstream/sqlite3.c.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 upstream/sqlite3.c.patch (limited to 'upstream/sqlite3.c.patch') 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 -- cgit v1.1