1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Use memcpy() rather than structure assignment so that memcmp() can later

be used for comparison.  Ticket [8550ecca70]

FossilOrigin-Name: 56f609da4bfcc794e1f8573652dcde8515e87098
This commit is contained in:
drh
2009-10-07 23:42:25 +00:00
parent f589450dc9
commit 9b5db1dbd6
3 changed files with 19 additions and 9 deletions

View File

@@ -1028,7 +1028,7 @@ static int findLockInfo(
rc = SQLITE_NOMEM;
goto exit_findlockinfo;
}
pLock->lockKey = lockKey;
memcpy(&pLock->lockKey,&lockKey,sizeof(lockKey));
pLock->nRef = 1;
pLock->cnt = 0;
pLock->locktype = 0;