rt: Zero out dynamic allocas for now

This commit is contained in:
Patrick Walton 2011-09-01 11:44:59 -07:00
parent a6c14964c8
commit 83ac32e8aa

View file

@ -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;
}