aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2015-11-07 16:22:29 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2015-11-07 16:22:29 +0000
commit6cdc211add41b52963968140075bfa1177734ec2 (patch)
tree0019354c1092d336f2d8fbb5e3b9206747998c97 /usr.bin
parent78be8e6732246af986574d0ef90f2959615325a7 (diff)
Notes
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/localedef/collate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/localedef/collate.c b/usr.bin/localedef/collate.c
index 1b88cf800bd1..5a31a75bac50 100644
--- a/usr.bin/localedef/collate.c
+++ b/usr.bin/localedef/collate.c
@@ -1255,7 +1255,8 @@ dump_collate(void)
* Large (> UCHAR_MAX) character priorities
*/
RB_NUMNODES(collchar_t, collchars, &collchars, n);
- large = calloc(sizeof (collate_large_t) * n, 1);
+ large = malloc(sizeof (collate_large_t) * n);
+ memset(large, 0, sizeof (collate_large_t) * n);
if (large == NULL) {
fprintf(stderr, "out of memory");
return;