0

[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:
shess
2015-09-16 12:04:55 -07:00
committed by Commit bot
parent 79a7feb966
commit 702467624c

@ -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);