aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-09-06 19:36:29 +0000
committerdrh <drh@noemail.net>2018-09-06 19:36:29 +0000
commitcb4e4b00b39651986676d26a9317d59b3a0f0bb3 (patch)
tree69b56565dda7a6a0fd2bf3563fc5c1f7700fc73c /src/os_unix.c
parentc50f75df9635f420cdb7a03b484c82ba4ce56b21 (diff)
downloadsqlite-cb4e4b00b39651986676d26a9317d59b3a0f0bb3.tar.gz
sqlite-cb4e4b00b39651986676d26a9317d59b3a0f0bb3.zip
Fix a harmless compiler warning in os_unix.c.
FossilOrigin-Name: b9d1fb5d44e0a6ffc00ee987f178e448d7516e579beecdeeb387e69aef588921
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 d96c701b5..a15592ef3 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3182,7 +3182,7 @@ static int afpClose(sqlite3_file *id) {
if( pFile->pInode ){
unixInodeInfo *pInode = pFile->pInode;
sqlite3_mutex_enter(pInode->pLockMutex);
- if( pFile->pInode->nLock ){
+ if( pInode->nLock ){
/* If there are outstanding locks, do not actually close the file just
** yet because that would clear those locks. Instead, add the file
** descriptor to pInode->aPending. It will be automatically closed when