diff options
author | drh <drh@noemail.net> | 2016-12-21 19:45:54 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2016-12-21 19:45:54 +0000 |
commit | a582b016983c5fc14971a8550f59c7e65fa5ae0d (patch) | |
tree | db096dacb260e2fdaf90003d5ba0f99dc3212d13 /src/vdbeapi.c | |
parent | f99dd359d00fd5af78d8ccb4b7c27fc82f578ddb (diff) | |
download | sqlite-a582b016983c5fc14971a8550f59c7e65fa5ae0d.tar.gz sqlite-a582b016983c5fc14971a8550f59c7e65fa5ae0d.zip |
Simplifications to the way UnpackedRecord objects are allocated. Smaller
and faster code that also fixes a subtle (currently unreachable) bug.
FossilOrigin-Name: f7ab01f254cd9d7006b8dec29adb234a671b8e6f
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r-- | src/vdbeapi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c index 050a4d0e6..213ba830d 100644 --- a/src/vdbeapi.c +++ b/src/vdbeapi.c @@ -1657,10 +1657,9 @@ static UnpackedRecord *vdbeUnpackRecord( int nKey, const void *pKey ){ - char *dummy; /* Dummy argument for AllocUnpackedRecord() */ UnpackedRecord *pRet; /* Return value */ - pRet = sqlite3VdbeAllocUnpackedRecord(pKeyInfo, 0, 0, &dummy); + pRet = sqlite3VdbeAllocUnpackedRecord(pKeyInfo); if( pRet ){ memset(pRet->aMem, 0, sizeof(Mem)*(pKeyInfo->nField+1)); sqlite3VdbeRecordUnpack(pKeyInfo, nKey, pKey, pRet); |