diff options
Diffstat (limited to 'lang/sql/sqlite/src/bitvec.c')
-rw-r--r-- | lang/sql/sqlite/src/bitvec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lang/sql/sqlite/src/bitvec.c b/lang/sql/sqlite/src/bitvec.c index 47d33ea8..52184aa9 100644 --- a/lang/sql/sqlite/src/bitvec.c +++ b/lang/sql/sqlite/src/bitvec.c @@ -72,7 +72,7 @@ /* ** A bitmap is an instance of the following structure. ** -** This bitmap records the existance of zero or more bits +** This bitmap records the existence of zero or more bits ** with values between 1 and iSize, inclusive. ** ** There are three possible representations of the bitmap. @@ -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); |