aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-01-03 23:36:22 +0000
committerdrh <drh@noemail.net>2007-01-03 23:36:22 +0000
commitbafda0962e300bba8b199c0d25f16d4d48e6c873 (patch)
treef46ed9dda1fa8eeebc96378d3951e2d8b010fe3b /src/os_unix.c
parent1aa2d8b55bffb70e7286acc74a8a6b2018d7e63f (diff)
downloadsqlite-bafda0962e300bba8b199c0d25f16d4d48e6c873.tar.gz
sqlite-bafda0962e300bba8b199c0d25f16d4d48e6c873.zip
Additional changes in the pager and os interface layers to fix problems that
might be contributing to recently observed database corruption. (CVS 3549) FossilOrigin-Name: a593d5743eab12c0f93a7bc436f0d69dfab0c387
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index 046faf10a..d7f05ac14 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -1032,6 +1032,7 @@ static int unixRead(OsFile *id, void *pBuf, int amt){
}else if( got<0 ){
return SQLITE_IOERR_READ;
}else{
+ memset(&((char*)pBuf)[got], 0, amt-got);
return SQLITE_IOERR_SHORT_READ;
}
}