Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Add a couple of pointer type casts to test file test_quota.c. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0df061b0554c749cade4ec8ddabe4539 |
User & Date: | dan 2011-06-15 17:04:43.219 |
Context
2011-06-15
| ||
19:18 | Further tweaks to the wal7.test test case. (check-in: 177e2d72a8 user: drh tags: trunk) | |
17:04 | Add a couple of pointer type casts to test file test_quota.c. (check-in: 0df061b055 user: dan tags: trunk) | |
16:07 | Fix the wal7.test script so that it works even if secure_delete is engaged. (check-in: 68fb7a548c user: drh tags: trunk) | |
Changes
Changes to src/test_quota.c.
︙ | ︙ | |||
319 320 321 322 323 324 325 | pSubOpen = quotaSubOpen(pConn); rc = pOrigVfs->xOpen(pOrigVfs, zName, pSubOpen, flags, pOutFlags); if( rc==SQLITE_OK ){ for(pFile=pGroup->pFiles; pFile && strcmp(pFile->zFilename, zName); pFile=pFile->pNext){} if( pFile==0 ){ int nName = strlen(zName); | | | 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 | pSubOpen = quotaSubOpen(pConn); rc = pOrigVfs->xOpen(pOrigVfs, zName, pSubOpen, flags, pOutFlags); if( rc==SQLITE_OK ){ for(pFile=pGroup->pFiles; pFile && strcmp(pFile->zFilename, zName); pFile=pFile->pNext){} if( pFile==0 ){ int nName = strlen(zName); pFile = (quotaFile *)sqlite3_malloc( sizeof(*pFile) + nName + 1 ); if( pFile==0 ){ quotaLeave(); pSubOpen->pMethods->xClose(pSubOpen); return SQLITE_NOMEM; } memset(pFile, 0, sizeof(*pFile)); pFile->zFilename = (char*)&pFile[1]; |
︙ | ︙ | |||
679 680 681 682 683 684 685 | } if( pGroup==0 ){ int nPattern = strlen(zPattern); if( iLimit<=0 ){ quotaLeave(); return SQLITE_OK; } | | | 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 | } if( pGroup==0 ){ int nPattern = strlen(zPattern); if( iLimit<=0 ){ quotaLeave(); return SQLITE_OK; } pGroup = (quotaGroup *)sqlite3_malloc( sizeof(*pGroup) + nPattern + 1 ); if( pGroup==0 ){ quotaLeave(); return SQLITE_NOMEM; } memset(pGroup, 0, sizeof(*pGroup)); pGroup->zPattern = (char*)&pGroup[1]; memcpy((char *)pGroup->zPattern, zPattern, nPattern+1); |
︙ | ︙ |