aboutsummaryrefslogtreecommitdiff
path: root/src/bitvec.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2012-08-06 18:10:09 +0000
committerdan <dan@noemail.net>2012-08-06 18:10:09 +0000
commit8c5287ec73659e982e593c339b92e6ea2f5ff3d1 (patch)
tree2550f3e63ef12235dd718513d153a940696ce395 /src/bitvec.c
parent9d0c0ea6012c4da933831894cb8c8ae32c92a1b1 (diff)
parente2e2ab3a2d9f29aecf1ccac661ccddda892a6162 (diff)
downloadsqlite-8c5287ec73659e982e593c339b92e6ea2f5ff3d1.tar.gz
sqlite-8c5287ec73659e982e593c339b92e6ea2f5ff3d1.zip
Update sorter-coalesce-writes branch with latest trunk changes.
FossilOrigin-Name: 214f8cda1727e0eee51605be487d4cf4f2dfb6db
Diffstat (limited to 'src/bitvec.c')
-rw-r--r--src/bitvec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bitvec.c b/src/bitvec.c
index 47d33ea84..8d805a6fe 100644
--- a/src/bitvec.c
+++ b/src/bitvec.c
@@ -340,10 +340,9 @@ int sqlite3BitvecBuiltinTest(int sz, int *aOp){
/* Allocate the Bitvec to be tested and a linear array of
** bits to act as the reference */
pBitvec = sqlite3BitvecCreate( sz );
- pV = sqlite3_malloc( (sz+7)/8 + 1 );
+ pV = sqlite3MallocZero( (sz+7)/8 + 1 );
pTmpSpace = sqlite3_malloc(BITVEC_SZ);
if( pBitvec==0 || pV==0 || pTmpSpace==0 ) goto bitvec_end;
- memset(pV, 0, (sz+7)/8 + 1);
/* NULL pBitvec tests */
sqlite3BitvecSet(0, 1);