rt: Zero out dynamic allocas for now
This commit is contained in:
parent
a6c14964c8
commit
83ac32e8aa
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ rust_obstack_chunk::alloc(size_t len, type_desc *tydesc) {
|
|||
|
||||
rust_obstack_alloc *a = new(data + alen) rust_obstack_alloc(len, tydesc);
|
||||
alen += sizeof(*a) + len;
|
||||
memset(a->data, '\0', len); // FIXME: For GC.
|
||||
return &a->data;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue