aboutsummaryrefslogtreecommitdiff
path: root/src/shell.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2015-11-16 08:54:10 +0000
committerdan <dan@noemail.net>2015-11-16 08:54:10 +0000
commit3fd415b2bf46be65360579d1b84d4dd20b2dbbf7 (patch)
tree6941ca02ec6a317e6928f2a268409763aaaefe07 /src/shell.c
parentf7ee8965a5f36fd6dbd9469784ab6e539cea950d (diff)
downloadsqlite-3fd415b2bf46be65360579d1b84d4dd20b2dbbf7.tar.gz
sqlite-3fd415b2bf46be65360579d1b84d4dd20b2dbbf7.zip
In the shell tool, avoid testing if (sqlite3_vfs.xGetCurrentInt64) is NULL for a version 1 VFS. This field is only defined for version 2 and greater.
FossilOrigin-Name: ad5fcaa583ef743d143b6c030e0d78019709fe71
Diffstat (limited to 'src/shell.c')
-rw-r--r--src/shell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.c b/src/shell.c
index 7c5399579..84f693300 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -165,7 +165,7 @@ static sqlite3_int64 timeOfDay(void){
static sqlite3_vfs *clockVfs = 0;
sqlite3_int64 t;
if( clockVfs==0 ) clockVfs = sqlite3_vfs_find(0);
- if( clockVfs->iVersion>=1 && clockVfs->xCurrentTimeInt64!=0 ){
+ if( clockVfs->iVersion>=2 && clockVfs->xCurrentTimeInt64!=0 ){
clockVfs->xCurrentTimeInt64(clockVfs, &t);
}else{
double r;