diff options
author | delphij <delphij@FreeBSD.org> | 2006-06-07 01:43:26 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2006-06-07 01:43:26 +0000 |
commit | 65d304bb17eb3a675475dca1de8ce547a6651d5b (patch) | |
tree | 4def380021210fed9370419643b636082f3986aa /usr.sbin/config/main.c | |
parent | ec70ef58cb0b1e1ae85196811da2e42d64dac5a0 (diff) | |
download | FreeBSD-src-65d304bb17eb3a675475dca1de8ce547a6651d5b.zip FreeBSD-src-65d304bb17eb3a675475dca1de8ce547a6651d5b.tar.gz |
Use calloc() instead of zeroing the memory our own.
Diffstat (limited to 'usr.sbin/config/main.c')
-rw-r--r-- | usr.sbin/config/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |