summaryrefslogtreecommitdiffstats
path: root/sys/boot
diff options
context:
space:
mode:
authordcs <dcs@FreeBSD.org>1999-11-27 18:31:57 +0000
committerdcs <dcs@FreeBSD.org>1999-11-27 18:31:57 +0000
commitde6772106e4f3fa6f8540ac06ae94d5aba1752ed (patch)
tree3cd7fa72837c69be7dbdaaeaebc23c5163a94049 /sys/boot
parent6e2e0f5931f1a9993eb47ee521c2ae52379c87f8 (diff)
downloadFreeBSD-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.c1
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;
OpenPOWER on IntegriCloud