aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2011-07-26 16:23:25 +0000
committerdrh <drh@noemail.net>2011-07-26 16:23:25 +0000
commit253cea5c6f34b1be77e9cc9c9c5ad35587ec5b25 (patch)
tree58bdb76ad2e49017c35246db9826879573feed46 /src/os_unix.c
parentf0b190d94c1d80b7c20d1a4d52aef9187142c864 (diff)
downloadsqlite-253cea5c6f34b1be77e9cc9c9c5ad35587ec5b25.tar.gz
sqlite-253cea5c6f34b1be77e9cc9c9c5ad35587ec5b25.zip
Test cases added. Fix the query mode.
FossilOrigin-Name: a9d8794ae949df570466a84836882bc8bed95c7c
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 9f8204dfd..dbf3c1012 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3471,7 +3471,7 @@ static int unixFileControl(sqlite3_file *id, int op, void *pArg){
case SQLITE_FCNTL_PERSIST_WAL: {
int bPersist = *(int*)pArg;
if( bPersist<0 ){
- bPersist = (pFile->ctrlFlags & UNIXFILE_PERSIST_WAL)!=0;
+ *(int*)pArg = (pFile->ctrlFlags & UNIXFILE_PERSIST_WAL)!=0;
}else if( bPersist==0 ){
pFile->ctrlFlags &= ~UNIXFILE_PERSIST_WAL;
}else{