diff options
author | dan <dan@noemail.net> | 2012-07-30 14:53:54 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2012-07-30 14:53:54 +0000 |
commit | 6809c96df33bf03d22700b62dcc27b7d753834b1 (patch) | |
tree | d666cd3c6e7db449b126abe54e4303b75c1273ee /src/bitvec.c | |
parent | 0b5ae7299319466ae56339c9a0511528b3454956 (diff) | |
download | sqlite-6809c96df33bf03d22700b62dcc27b7d753834b1.tar.gz sqlite-6809c96df33bf03d22700b62dcc27b7d753834b1.zip |
Replace a few sqlite3_malloc()+memset() sequences with calls to sqlite3MallocZero().
FossilOrigin-Name: 305b6667265353b858b79bfea1745e64ff3bb7d3
Diffstat (limited to 'src/bitvec.c')
-rw-r--r-- | src/bitvec.c | 3 |
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); |