From: bapt Date: Sat, 7 Nov 2015 16:22:29 +0000 (+0000) Subject: Workaround an issue on i386 to unbreak the build until the real issue is tracked X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=130223d5a3e6a0003a8953a6529a048d4cf987d7;p=people%2Fliuw%2Ffreebsd.git Workaround an issue on i386 to unbreak the build until the real issue is tracked down --- diff --git a/usr.bin/localedef/collate.c b/usr.bin/localedef/collate.c index 1b88cf800bd..5a31a75bac5 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;