1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix some problems in the crash-test backend. (CVS 4256)

FossilOrigin-Name: 5bced2392ad77aff0aa1ddea83f2ff9e3ffe28a8
This commit is contained in:
danielk1977
2007-08-21 13:07:46 +00:00
parent 29278e3dbb
commit f1da17a388
4 changed files with 111 additions and 57 deletions

View File

@@ -233,6 +233,7 @@ int sqlite3_vfs_register(sqlite3_vfs *pVfs, int makeDflt){
pVfs->pNext = vfsList->pNext;
pVfs->pNext = pVfs;
}
assert(vfsList);
sqlite3_mutex_leave(mutex);
return SQLITE_OK;
}
@@ -244,6 +245,7 @@ int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){
sqlite3_mutex *mutex = sqlite3_mutex_alloc(SQLITE_MUTEX_STATIC_MASTER);
sqlite3_mutex_enter(mutex);
vfsUnlink(pVfs);
assert(vfsList);
sqlite3_mutex_leave(mutex);
return SQLITE_OK;
}