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

There is no need for sqlite3_step() to check for an OOM condition prior

to starting up.

FossilOrigin-Name: 44be7f46ba89289683ed0e123169ca9adb1018de03071d66de480c910a23d074
This commit is contained in:
drh
2022-04-01 19:13:39 +00:00
parent a24832b7b2
commit 35e9e350ca
3 changed files with 8 additions and 14 deletions

View File

@@ -642,14 +642,8 @@ static int sqlite3Step(Vdbe *p){
sqlite3 *db;
int rc;
/* Check that malloc() has not failed. If it has, return early. */
db = p->db;
if( db->mallocFailed ){
p->rc = SQLITE_NOMEM;
return SQLITE_NOMEM_BKPT;
}
assert(p);
db = p->db;
if( p->eVdbeState!=VDBE_RUN_STATE ){
restart_step:
if( p->eVdbeState==VDBE_READY_STATE ){