1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Fix an error in the setDeviceCharacteristics() procedure for the

(unsupported) QNX code in os_unix.c.

FossilOrigin-Name: 8151913a3987f4dd2d6efee046727f5fa9b6f11d5d3867ea8f512c03a212ac2b
This commit is contained in:
drh
2018-01-15 14:32:37 +00:00
parent b058d05452
commit a9be508a97
3 changed files with 8 additions and 8 deletions

View File

@@ -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") ) {