aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2009-10-07 23:42:25 +0000
committerdrh <drh@noemail.net>2009-10-07 23:42:25 +0000
commit9b5db1dbd669dd83a8ea0e3d449827f185fda6a2 (patch)
treedd7e2001defbe48607f753d9ca4c500b11d72c0b /src/os_unix.c
parentf589450dc9892a5cb486690cadbe2ba443eec4ef (diff)
downloadsqlite-9b5db1dbd669dd83a8ea0e3d449827f185fda6a2.tar.gz
sqlite-9b5db1dbd669dd83a8ea0e3d449827f185fda6a2.zip
Use memcpy() rather than structure assignment so that memcmp() can later
be used for comparison. Ticket [8550ecca70] FossilOrigin-Name: 56f609da4bfcc794e1f8573652dcde8515e87098
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index ef04a72e4..37447ac40 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -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;