diff options
author | mistachkin <mistachkin@noemail.net> | 2011-08-30 01:23:34 +0000 |
---|---|---|
committer | mistachkin <mistachkin@noemail.net> | 2011-08-30 01:23:34 +0000 |
commit | d589a5444b9a0eb316f06fbeb6fe04cf3049cc68 (patch) | |
tree | 469f68f6d603f4229b22bbaa8b5486ad4614d77b /src/os_unix.c | |
parent | e0a59cf0e14b39a5cfc5394399a99aea19787a8c (diff) | |
download | sqlite-d589a5444b9a0eb316f06fbeb6fe04cf3049cc68.tar.gz sqlite-d589a5444b9a0eb316f06fbeb6fe04cf3049cc68.zip |
Make sure SQLITE_FCNTL_SIZE_HINT a no-op if the chunk size is not greater than zero.
FossilOrigin-Name: 88b763e8d73fafa1538b08af28b1c8b723b39c61
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 8abef8de8..f273d04cb 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -3445,7 +3445,7 @@ static int proxyFileControl(sqlite3_file*,int,void*); ** nBytes or larger, this routine is a no-op. */ static int fcntlSizeHint(unixFile *pFile, i64 nByte){ - if( pFile->szChunk ){ + if( pFile->szChunk>0 ){ i64 nSize; /* Required file size */ struct stat buf; /* Used to hold return values of fstat() */ |