From 079d446dd2c9f9f83c4a77d23c539e1ae5d5d11a Mon Sep 17 00:00:00 2001 From: drh Date: Fri, 15 Jan 2016 21:55:46 +0000 Subject: [PATCH] Remove an unnecessary memset(). FossilOrigin-Name: 689421a9f73ceeab9786840a2d6ee008124d1f25 --- manifest | 14 +++++++------- manifest.uuid | 2 +- src/build.c | 1 - 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/manifest b/manifest index 10927de756..01160c68f8 100644 --- a/manifest +++ b/manifest @@ -1,5 +1,5 @@ -C Rationalize\ssome\scode\sin\sfts5_storage.c.\sAdd\stests\sto\scover\srecently\sadded\sbranches\sin\sfts5. -D 2016-01-15T19:54:47.454 +C Remove\san\sunnecessary\smemset(). +D 2016-01-15T21:55:46.864 F Makefile.in a476545d0c8626224d0bacac85c6e2967474af81 F Makefile.linux-gcc 7bc79876b875010e8c8f9502eb935ca92aa3c434 F Makefile.msc 01e855f958932d0d3ed62ec675fc63e2cef61fcb @@ -288,7 +288,7 @@ F src/btmutex.c bc87dd3b062cc26edfe79918de2200ccb8d41e73 F src/btree.c d9c6b2e2df06314079aa582f12937401a62171a6 F src/btree.h 68ef301795e00cdf1d3ab93abc44a43b7fe771e0 F src/btreeInt.h c18b7d2a3494695133e4e60ee36061d37f45d9a5 -F src/build.c ae94a76279b988a62f82ae25344c68026d5fd47c +F src/build.c a23d2012f06c7a7dbb33e15608df9fdef68326af F src/callback.c 29ae4faba226c7ebb9aee93016b5ce8a8f071261 F src/complete.c addcd8160b081131005d5bc2d34adf20c1c5c92f F src/ctime.c 60e135af364d777a9ab41c97e5e89cd224da6198 @@ -1416,7 +1416,7 @@ F tool/vdbe_profile.tcl 246d0da094856d72d2c12efec03250d71639d19f F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4 F tool/warnings.sh 48bd54594752d5be3337f12c72f28d2080cb630b F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f -P 75ab30c5fcb51e556342dc3112f9acf122f79947 -R 374e508382342a2641c42b70ee61e09e -U dan -Z e6d3f908cc39d2673b189171ce4240a7 +P 3b72df405ac9b3a71144f45317d32e25f0084c4b +R 1b6fc5c53ba731472d7f7fb860ed6428 +U drh +Z edef52557fd12bf4085bbb78a4ba3a5f diff --git a/manifest.uuid b/manifest.uuid index 7756c1a36c..6fd8be9245 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -3b72df405ac9b3a71144f45317d32e25f0084c4b \ No newline at end of file +689421a9f73ceeab9786840a2d6ee008124d1f25 \ No newline at end of file diff --git a/src/build.c b/src/build.c index d783406761..24f908b078 100644 --- a/src/build.c +++ b/src/build.c @@ -499,7 +499,6 @@ void sqlite3CollapseDatabaseArray(sqlite3 *db){ } j++; } - memset(&db->aDb[j], 0, (db->nDb-j)*sizeof(db->aDb[j])); db->nDb = j; if( db->nDb<=2 && db->aDb!=db->aDbStatic ){ memcpy(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0]));