From 3f45ca04455501a974a9bce0a59cb51de68bfdcf Mon Sep 17 00:00:00 2001 From: "Daniel C. Sobral" Date: Sat, 27 Nov 1999 18:31:57 +0000 Subject: [PATCH] Zeroes structure before using it. --- sys/boot/ficl/dict.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/boot/ficl/dict.c b/sys/boot/ficl/dict.c index 52858b7d129..d8c67657da3 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;