diff options
Diffstat (limited to 'src/pager.c')
-rw-r--r-- | src/pager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pager.c b/src/pager.c index d023682b2..7f8d053a9 100644 --- a/src/pager.c +++ b/src/pager.c @@ -7036,8 +7036,8 @@ 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[] = { 0x01, 0x00, 0x00, 0x00 }; - return (nullIfMemDb && pPager->memDb) ? &zFake[2] : pPager->zFilename; + static const char zFake[] = { 0x00, 0x01, 0x00, 0x00, 0x00 }; + return (nullIfMemDb && pPager->memDb) ? &zFake[3] : pPager->zFilename; } /* |