use calloc instead of malloc, to make sure block is initialized to 0
authorceriel <none@none>
Wed, 1 Mar 1989 10:00:37 +0000 (10:00 +0000)
committerceriel <none@none>
Wed, 1 Mar 1989 10:00:37 +0000 (10:00 +0000)
mach/proto/as/comm1.h
mach/proto/as/comm7.c

index 01902dd..9eaea90 100644 (file)
@@ -116,6 +116,7 @@ extern FILE *fftemp();
 extern long    atol();
 extern char    *mktemp();
 extern char    *malloc();
+extern char    *calloc();
 extern char    *getenv();
 extern char    *strncpy();
 
index c1a6760..7c976cd 100644 (file)
@@ -198,7 +198,7 @@ small(fitsmall, gain)
                        return(0);
                }
                if (pbittab[bitindex] == 0 && pass == PASS_1) {
-                       if ((pbittab[bitindex] = malloc(MEMINCR)) == 0) {
+                       if ((pbittab[bitindex] = calloc(MEMINCR, 1)) == 0) {
                                static int w2_given;
 
                                if (!w2_given) {