mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Zeroes structure before using it.
This commit is contained in:
parent
679106b15a
commit
3f45ca0445
1 changed files with 1 additions and 0 deletions
|
|
@ -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 a new issue