1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Fix an initialization problem in FTS1. Ticket #1977. (CVS 3424)

FossilOrigin-Name: 5a18dd88498ca35ca1333d88c4635868d0b61073
This commit is contained in:
drh
2006-09-15 16:08:59 +00:00
parent e49f982792
commit ae2f2048df
3 changed files with 8 additions and 8 deletions

View File

@ -1669,7 +1669,7 @@ int parseSpec(TableSpec *pSpec, int argc, const char *const*argv, char**pzErr){
** The argv[][] array is read-only and transient. We can write to the
** copy in order to modify things and the copy is persistent.
*/
memset(pSpec, 0, sizeof(pSpec));
memset(pSpec, 0, sizeof(*pSpec));
for(i=n=0; i<argc; i++){
n += strlen(argv[i]) + 1;
}