From 65d304bb17eb3a675475dca1de8ce547a6651d5b Mon Sep 17 00:00:00 2001 From: delphij Date: Wed, 7 Jun 2006 01:43:26 +0000 Subject: Use calloc() instead of zeroing the memory our own. --- usr.sbin/config/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'usr.sbin/config/main.c') diff --git a/usr.sbin/config/main.c b/usr.sbin/config/main.c index 4929f56..a87f3d7 100644 --- a/usr.sbin/config/main.c +++ b/usr.sbin/config/main.c @@ -518,8 +518,7 @@ remember(const char *file) return; } } - hl = malloc(sizeof(*hl)); - bzero(hl, sizeof(*hl)); + hl = calloc(1, sizeof(*hl)); hl->h_name = s; hl->h_next = htab; htab = hl; -- cgit v1.1