Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Use memcpy() rather than structure assignment so that memcmp() can later be used for comparison. Ticket [8550ecca70] |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
56f609da4bfcc794e1f8573652dcde85 |
User & Date: | drh 2009-10-07 23:42:25.000 |
References
2009-10-07
| ||
23:43 | • Fixed ticket [8550ecca70]: findLockInfo uses memcmp on non-zeroed, = assigned struct plus 3 other changes (artifact: 0eeaeb3075 user: drh) | |
Context
2009-10-08
| ||
01:43 | Fix a segfault that can occur following an OOM fault while renaming a table holding foreign key constraints. (check-in: 33973814c6 user: drh tags: trunk) | |
2009-10-07
| ||
23:42 | Use memcpy() rather than structure assignment so that memcmp() can later be used for comparison. Ticket [8550ecca70] (check-in: 56f609da4b user: drh tags: trunk) | |
18:41 | Add some tests of statements in foreignkeys.html. (check-in: 8382867956 user: dan tags: trunk) | |
Changes
Changes to src/os_unix.c.
︙ | ︙ | |||
1024 1025 1026 1027 1028 1029 1030 | } if( pLock==0 ){ pLock = sqlite3_malloc( sizeof(*pLock) ); if( pLock==0 ){ rc = SQLITE_NOMEM; goto exit_findlockinfo; } | | | 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 | } if( pLock==0 ){ pLock = sqlite3_malloc( sizeof(*pLock) ); if( pLock==0 ){ rc = SQLITE_NOMEM; goto exit_findlockinfo; } memcpy(&pLock->lockKey,&lockKey,sizeof(lockKey)); pLock->nRef = 1; pLock->cnt = 0; pLock->locktype = 0; pLock->pNext = lockList; pLock->pPrev = 0; if( lockList ) lockList->pPrev = pLock; lockList = pLock; |
︙ | ︙ |