1
Fork 0

*** empty log message ***

This commit is contained in:
fc_botelho 2008-03-25 20:44:12 +00:00
parent ff5931a80b
commit beafb103e7
1 changed files with 2 additions and 2 deletions

View File

@ -279,8 +279,8 @@ int main(int argc, char **argv)
return -1;
}
cmph_uint32 siz = cmph_size(mphf);
hashtable = (cmph_uint8*)malloc(source->nkeys*sizeof(cmph_uint8));
memset(hashtable, 0, source->nkeys);
hashtable = (cmph_uint8*)malloc(siz*sizeof(cmph_uint8));
memset(hashtable, 0, siz);
//check all keys
for (i = 0; i < source->nkeys; ++i)
{