aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-08-16 16:24:24 +0000
committerdrh <drh@noemail.net>2018-08-16 16:24:24 +0000
commit3fcef1a3f973a4a675dc17a4b50c78b7be8435db (patch)
treef3287721cd662532d82871208019c213efc00473 /src/os_unix.c
parentd8852095e01b4c41673779d95c951a7de75daf83 (diff)
downloadsqlite-3fcef1a3f973a4a675dc17a4b50c78b7be8435db.tar.gz
sqlite-3fcef1a3f973a4a675dc17a4b50c78b7be8435db.zip
Fix a harmless unused-variable compiler warning that only came up in certain
compile-time configurations. FossilOrigin-Name: 456842924bb33c0af8af29402f06e5f25b6791f698a0d12a080258b20b0cfb61
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 ab0a5d919..d96c701b5 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -2111,7 +2111,7 @@ static int unixClose(sqlite3_file *id){
*/
assert( pFile->pInode->nLock>0 || pFile->pInode->bProcessLock==0 );
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->pUnused list. It will be automatically closed