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:
@@ -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 ){
|
||||
|
Reference in New Issue
Block a user