aboutsummaryrefslogtreecommitdiff
path: root/src/pager.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2020-02-27 16:21:39 +0000
committerdrh <drh@noemail.net>2020-02-27 16:21:39 +0000
commitbe284e4ecee23499b30f9c1f8f44ebf872e071ea (patch)
tree31a061772003b0b297e0f03a6c6a586e9ca8a8a4 /src/pager.c
parent67e2bb92df88c2497a5bbbe82b3e3be4fce8b6fc (diff)
downloadsqlite-be284e4ecee23499b30f9c1f8f44ebf872e071ea.tar.gz
sqlite-be284e4ecee23499b30f9c1f8f44ebf872e071ea.zip
Fix harmless compiler warnings from MSVC.
FossilOrigin-Name: 951b39ca74c9bd933139e099d5555283278db475f410f202c162e5d1e6aef933
Diffstat (limited to 'src/pager.c')
-rw-r--r--src/pager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pager.c b/src/pager.c
index e7b875592..5d2225590 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -6959,7 +6959,7 @@ int sqlite3PagerSavepoint(Pager *pPager, int op, int iSavepoint){
** sqlite3_uri_parameter() and sqlite3_filename_database() and friends.
*/
const char *sqlite3PagerFilename(const Pager *pPager, int nullIfMemDb){
- static const char zFake[8]; /* Initialized to zero by default */
+ static const char zFake[8] = { 0, 0, 0, 0, 0, 0, 0, 0 };
return (nullIfMemDb && pPager->memDb) ? &zFake[4] : pPager->zFilename;
}