diff options
author | drh <drh@noemail.net> | 2012-04-05 20:04:39 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2012-04-05 20:04:39 +0000 |
commit | b8af4b79193ee3170e7f0083956d7517801b7875 (patch) | |
tree | 75cd1c5a03565430aa01dd0daac342e408cb51bb /src/os_unix.c | |
parent | 3343b439152083def34f7de064fee204bc8d0f4d (diff) | |
download | sqlite-b8af4b79193ee3170e7f0083956d7517801b7875.tar.gz sqlite-b8af4b79193ee3170e7f0083956d7517801b7875.zip |
Ignore the value of SQLITE_FCNTL_CHUNK_SIZE if it is negative.
FossilOrigin-Name: 1b08fef9451f4d59148548faed115d1a5d0bcd98
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index 48c130935..559d15649 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3421,7 +3421,7 @@ static int unixTruncate(sqlite3_file *id, i64 nByte){ ** actual file size after the operation may be larger than the requested ** size). */ - if( pFile->szChunk ){ + if( pFile->szChunk>0 ){ nByte = ((nByte + pFile->szChunk - 1)/pFile->szChunk) * pFile->szChunk; } |