diff options
Diffstat (limited to 'src/os_test.c')
-rw-r--r-- | src/os_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/os_test.c b/src/os_test.c index f9091202c..a69ba50e1 100644 --- a/src/os_test.c +++ b/src/os_test.c @@ -159,6 +159,7 @@ static int cacheBlock(OsTestFile *pFile, int blk){ int n = ((pFile->nBlk * 2) + 100 + blk); pFile->apBlk = (u8 **)sqliteRealloc(pFile->apBlk, n * sizeof(u8*)); if( !pFile->apBlk ) return SQLITE_NOMEM; + memset(&pFile->apBlk[pFile->nBlk], 0, (n - pFile->nBlk)*sizeof(u8*)); pFile->nBlk = n; } |