public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c7325e
)
use calloc instead of malloc, to make sure block is initialized to 0
author
ceriel
<none@none>
Wed, 1 Mar 1989 10:00:37 +0000
(10:00 +0000)
committer
ceriel
<none@none>
Wed, 1 Mar 1989 10:00:37 +0000
(10:00 +0000)
mach/proto/as/comm1.h
patch
|
blob
|
history
mach/proto/as/comm7.c
patch
|
blob
|
history
diff --git
a/mach/proto/as/comm1.h
b/mach/proto/as/comm1.h
index
01902dd
..
9eaea90
100644
(file)
--- a/
mach/proto/as/comm1.h
+++ b/
mach/proto/as/comm1.h
@@
-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();
diff --git
a/mach/proto/as/comm7.c
b/mach/proto/as/comm7.c
index
c1a6760
..
7c976cd
100644
(file)
--- a/
mach/proto/as/comm7.c
+++ b/
mach/proto/as/comm7.c
@@
-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) {