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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user