]> xenbits.xensource.com Git - people/liuw/freebsd.git/commitdiff
Workaround an issue on i386 to unbreak the build until the real issue is tracked
authorbapt <bapt@FreeBSD.org>
Sat, 7 Nov 2015 16:22:29 +0000 (16:22 +0000)
committerbapt <bapt@FreeBSD.org>
Sat, 7 Nov 2015 16:22:29 +0000 (16:22 +0000)
down

usr.bin/localedef/collate.c

index 1b88cf800bd14f61ea32d654e5e177fb1665b2f4..5a31a75bac5011d4e5cc2f0aa446b1b169c05cdc 100644 (file)
@@ -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;