diff options
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r-- | usr.sbin/config/mkmakefile.c | 3 |
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); } |