aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-01-15 14:32:37 +0000
committerdrh <drh@noemail.net>2018-01-15 14:32:37 +0000
commita9be508a9766d69194212dd89c17d6feaa68cbc3 (patch)
treeaf53830027b4253f1d472bb711b777d8220aa50b /src/os_unix.c
parentb058d05452079aee046a07e94a406b547c02b9f5 (diff)
downloadsqlite-a9be508a9766d69194212dd89c17d6feaa68cbc3.tar.gz
sqlite-a9be508a9766d69194212dd89c17d6feaa68cbc3.zip
Fix an error in the setDeviceCharacteristics() procedure for the
(unsupported) QNX code in os_unix.c. FossilOrigin-Name: 8151913a3987f4dd2d6efee046727f5fa9b6f11d5d3867ea8f512c03a212ac2b
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 d368cb34e..94b1efd87 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -3950,7 +3950,7 @@ static void setDeviceCharacteristics(unixFile *pFile){
pFile->sectorSize = SQLITE_DEFAULT_SECTOR_SIZE;
pFile->deviceCharacteristics = 0;
if( fstatvfs(pFile->h, &fsInfo) == -1 ) {
- return pFile->sectorSize;
+ return;
}
if( !strcmp(fsInfo.f_basetype, "tmp") ) {