Zeroes structure before using it.
This commit is contained in:
parent
6e2e0f5931
commit
de6772106e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user