public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cdcc16
)
Ensure that memory is zero-initialised.
author
David Given
<dg@cowlark.com>
Mon, 16 Jan 2017 21:45:03 +0000
(22:45 +0100)
committer
David Given
<dg@cowlark.com>
Mon, 16 Jan 2017 21:45:03 +0000
(22:45 +0100)
mach/proto/ncg/salloc.c
patch
|
blob
|
history
diff --git
a/mach/proto/ncg/salloc.c
b/mach/proto/ncg/salloc.c
index
e110d75
..
7ce1287
100644
(file)
--- a/
mach/proto/ncg/salloc.c
+++ b/
mach/proto/ncg/salloc.c
@@
-37,7
+37,7
@@
void chkstr();
string myalloc(size) {
register string p;
- p = (string)
malloc((unsigned)size
);
+ p = (string)
calloc((unsigned)size, 1
);
if (p==0)
fatal("Out of memory");
return(p);