mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-07 02:42:48 +03:00
Avoid unnecessary Mem initializations when generating a new sqlite3_stmt
object. FossilOrigin-Name: 47ae1cda8dc255d100aeb8cb90ea4c9e449509be
This commit is contained in:
@@ -1136,11 +1136,13 @@ case OP_Null: { /* out2 */
|
||||
cnt = pOp->p3-pOp->p2;
|
||||
assert( pOp->p3<=(p->nMem+1 - p->nCursor) );
|
||||
pOut->flags = nullFlag = pOp->p1 ? (MEM_Null|MEM_Cleared) : MEM_Null;
|
||||
pOut->n = 0;
|
||||
while( cnt>0 ){
|
||||
pOut++;
|
||||
memAboutToChange(p, pOut);
|
||||
sqlite3VdbeMemSetNull(pOut);
|
||||
pOut->flags = nullFlag;
|
||||
pOut->n = 0;
|
||||
cnt--;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user