aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/os.c2
-rw-r--r--src/pager.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/os.c b/src/os.c
index 693d78dc9..b11c49c1d 100644
--- a/src/os.c
+++ b/src/os.c
@@ -229,7 +229,7 @@ int sqlite3OsOpen(
int sqlite3OsDelete(sqlite3_vfs *pVfs, const char *zPath, int dirSync){
DO_OS_MALLOC_TEST(0);
assert( dirSync==0 || dirSync==1 );
- return pVfs->xDelete(pVfs, zPath, dirSync);
+ return pVfs->xDelete!=0 ? pVfs->xDelete(pVfs, zPath, dirSync) : SQLITE_OK;
}
int sqlite3OsAccess(
sqlite3_vfs *pVfs,
diff --git a/src/pager.c b/src/pager.c
index 811863252..be06a8a27 100644
--- a/src/pager.c
+++ b/src/pager.c
@@ -7327,7 +7327,7 @@ int sqlite3PagerSetJournalMode(Pager *pPager, int eMode){
assert( rc==SQLITE_OK );
rc = pagerLockDb(pPager, RESERVED_LOCK);
}
- if( rc==SQLITE_OK && pPager->pVfs->xDelete!=0 ){
+ if( rc==SQLITE_OK ){
sqlite3OsDelete(pPager->pVfs, pPager->zJournal, 0);
}
if( rc==SQLITE_OK && state==PAGER_READER ){