1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-14 00:22:38 +03:00

More speed improvements. (CVS 1580)

FossilOrigin-Name: c5ebc1c05eccc2c0697b6047a504954e11960f73
This commit is contained in:
drh
2004-06-13 00:54:01 +00:00
parent e1632b271d
commit eafe05b0ce
5 changed files with 16 additions and 15 deletions

View File

@@ -304,7 +304,7 @@ void sqlite3VdbeChangeP3(Vdbe *p, int addr, const char *zP3, int n){
int nField, nByte;
nField = ((KeyInfo*)zP3)->nField;
nByte = sizeof(*pKeyInfo) + (nField-1)*sizeof(pKeyInfo->aColl[0]);
pKeyInfo = sqliteMalloc( nByte );
pKeyInfo = sqliteMallocRaw( nByte );
pOp->p3 = (char*)pKeyInfo;
if( pKeyInfo ){
memcpy(pKeyInfo, zP3, nByte);