Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(921)

Unified Diff: third_party/sqlite/sqlite-src-3080704/src/bitvec.c

Issue 883353008: [sql] Import reference version of SQLite 3.8.7.4. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hold back encoding change which is messing up patch. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/sqlite/sqlite-src-3080704/src/bitvec.c
diff --git a/third_party/sqlite/src/src/bitvec.c b/third_party/sqlite/sqlite-src-3080704/src/bitvec.c
similarity index 99%
copy from third_party/sqlite/src/src/bitvec.c
copy to third_party/sqlite/sqlite-src-3080704/src/bitvec.c
index 47d33ea840833e575464c853f501e7c60ef1bde6..52184aa964ce1898f35d1b3d87871c2d0ef4c53d 100644
--- a/third_party/sqlite/src/src/bitvec.c
+++ b/third_party/sqlite/sqlite-src-3080704/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);
« no previous file with comments | « third_party/sqlite/sqlite-src-3080704/src/backup.c ('k') | third_party/sqlite/sqlite-src-3080704/src/btmutex.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698