Zeroes structure before using it.

This commit is contained in:
dcs 1999-11-27 18:31:57 +00:00
parent 6e2e0f5931
commit de6772106e

View File

@ -352,6 +352,7 @@ FICL_DICT *dictCreateHashed(unsigned nCells, unsigned nHash)
pDict = ficlMalloc(nAlloc);
assert(pDict);
memset(pDict, 0, sizeof (FICL_DICT));
pDict->size = nCells;
dictEmpty(pDict, nHash);
return pDict;