aboutsummaryrefslogtreecommitdiff
path: root/src/test_vfs.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2010-05-06 15:56:28 +0000
committerdan <dan@noemail.net>2010-05-06 15:56:28 +0000
commitd41a29a653313f97e2360b9a339e43f5fa04da36 (patch)
tree95782c070fb1675e24fc085d3c164200d81427c1 /src/test_vfs.c
parent84aab39782a2c19650962a81efb92269633907ff (diff)
downloadsqlite-d41a29a653313f97e2360b9a339e43f5fa04da36.tar.gz
sqlite-d41a29a653313f97e2360b9a339e43f5fa04da36.zip
Further coverage tests.
FossilOrigin-Name: 98a9713e0030a36ea99a18a12a2e7685c6db72b3
Diffstat (limited to 'src/test_vfs.c')
-rw-r--r--src/test_vfs.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test_vfs.c b/src/test_vfs.c
index bf9a3b6cb..c9efb5bda 100644
--- a/src/test_vfs.c
+++ b/src/test_vfs.c
@@ -495,7 +495,9 @@ static int tvfsShmGet(
Tcl_NewStringObj(pShm->pBuffer->zFile, -1), pShm->id, 0
);
tvfsResultCode(p, &rc);
- *pp = pShm->pBuffer->a;
+ if( rc==SQLITE_OK ){
+ *pp = pShm->pBuffer->a;
+ }
return rc;
}