summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkmakefile.c
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2006-06-07 01:43:26 +0000
committerdelphij <delphij@FreeBSD.org>2006-06-07 01:43:26 +0000
commit65d304bb17eb3a675475dca1de8ce547a6651d5b (patch)
tree4def380021210fed9370419643b636082f3986aa /usr.sbin/config/mkmakefile.c
parentec70ef58cb0b1e1ae85196811da2e42d64dac5a0 (diff)
downloadFreeBSD-src-65d304bb17eb3a675475dca1de8ce547a6651d5b.zip
FreeBSD-src-65d304bb17eb3a675475dca1de8ce547a6651d5b.tar.gz
Use calloc() instead of zeroing the memory our own.
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r--usr.sbin/config/mkmakefile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index 10e7ba8..93323ec 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -97,8 +97,7 @@ new_fent(void)
{
struct file_list *fp;
- fp = (struct file_list *) malloc(sizeof *fp);
- bzero(fp, sizeof *fp);
+ fp = (struct file_list *) calloc(1, sizeof *fp);
STAILQ_INSERT_TAIL(&ftab, fp, f_next);
return (fp);
}
OpenPOWER on IntegriCloud