diff options
author | dcs <dcs@FreeBSD.org> | 1999-11-27 18:31:57 +0000 |
---|---|---|
committer | dcs <dcs@FreeBSD.org> | 1999-11-27 18:31:57 +0000 |
commit | de6772106e4f3fa6f8540ac06ae94d5aba1752ed (patch) | |
tree | 3cd7fa72837c69be7dbdaaeaebc23c5163a94049 /sys/boot | |
parent | 6e2e0f5931f1a9993eb47ee521c2ae52379c87f8 (diff) | |
download | FreeBSD-src-de6772106e4f3fa6f8540ac06ae94d5aba1752ed.zip FreeBSD-src-de6772106e4f3fa6f8540ac06ae94d5aba1752ed.tar.gz |
Zeroes structure before using it.
Diffstat (limited to 'sys/boot')
-rw-r--r-- | sys/boot/ficl/dict.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/boot/ficl/dict.c b/sys/boot/ficl/dict.c index 52858b7..d8c6765 100644 --- a/sys/boot/ficl/dict.c +++ b/sys/boot/ficl/dict.c @@ -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; |