mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-12 13:01:09 +03:00
Get all tests running without memory leaks. (CVS 4714)
FossilOrigin-Name: 5807921f5a6e2e08f2c9e79aa91d8c587d64de74
This commit is contained in:
@@ -1032,8 +1032,8 @@ static int unixSync(sqlite3_file *id, int flags){
|
||||
static int unixTruncate(sqlite3_file *id, i64 nByte){
|
||||
int rc;
|
||||
assert( id );
|
||||
SimulateIOError( return SQLITE_IOERR_TRUNCATE );
|
||||
rc = ftruncate(((unixFile*)id)->h, (off_t)nByte);
|
||||
SimulateIOError( rc=1 );
|
||||
if( rc ){
|
||||
return SQLITE_IOERR_TRUNCATE;
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user