[sql] sqlite3_initialize() before additional entry point.
sqlite3_vfs_find() added an additional entry point in Delete(), which is static. BUG=84094 TBR=erg@chromium.org Review URL: https://codereview.chromium.org/1351653002 Cr-Commit-Position: refs/heads/master@{#349179}
This commit is contained in:
@ -676,6 +676,9 @@ bool Connection::Delete(const base::FilePath& path) {
|
||||
std::string wal_str = AsUTF8ForSQL(wal_path);
|
||||
std::string path_str = AsUTF8ForSQL(path);
|
||||
|
||||
// Make sure sqlite3_initialize() is called before anything else.
|
||||
InitializeSqlite();
|
||||
|
||||
sqlite3_vfs* vfs = sqlite3_vfs_find(NULL);
|
||||
CHECK(vfs);
|
||||
CHECK(vfs->xDelete);
|
||||
|
Reference in New Issue
Block a user