aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2017-10-26 17:34:50 +0000
committerdan <dan@noemail.net>2017-10-26 17:34:50 +0000
commitab04eff809c0ee16a913e469ce51acdfcaf20c5d (patch)
tree5d088267094b4b0cd68cfba6ae1eadf17b50ff06 /src/os_unix.c
parent9181ae990a3b8623d27813209e6649bf76565545 (diff)
downloadsqlite-ab04eff809c0ee16a913e469ce51acdfcaf20c5d.tar.gz
sqlite-ab04eff809c0ee16a913e469ce51acdfcaf20c5d.zip
Fix an error in the previous commit on this branch.
FossilOrigin-Name: f71dfee06ce1e0eee760cfca19482bdec7729d6c7d28f10f4cfd21e1f92a04b0
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 f689ff75f..7720a255a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -4401,7 +4401,7 @@ static int unixOpenSharedMemory(unixFile *pDbFd){
lock.l_start = UNIX_SHM_DMS;
lock.l_len = 1;
lock.l_type = F_WRLCK;
- if( osFcntl(pShmNode->h, F_GETLK, &lockInfo)!=0 ) {
+ if( osFcntl(pShmNode->h, F_GETLK, &lock)!=0 ) {
rc = SQLITE_IOERR_LOCK;
}else if( lock.l_type==F_UNLCK ){
rc = SQLITE_CANTOPEN_DIRTYWAL;