1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Fix a problem with handling OOM errors in fts3.

FossilOrigin-Name: f9c54e95ecf1c36c4750bb151e91d81c1d1bd596
This commit is contained in:
dan
2010-01-20 14:25:37 +00:00
parent 7ed97b9de9
commit 14d4cc4356
4 changed files with 12 additions and 20 deletions

View File

@@ -299,9 +299,10 @@ static int sqlite3Step(Vdbe *p){
return SQLITE_MISUSE;
}
/* Assert that malloc() has not failed */
/* Check that malloc() has not failed. If it has, return early. */
db = p->db;
if( db->mallocFailed ){
p->rc = SQLITE_NOMEM;
return SQLITE_NOMEM;
}