Rest of code assumes that allocated memory is filled with zeroes

This commit is contained in:
Ilya Novoselov 2014-04-08 07:51:55 +06:00
parent f4916f9ee4
commit 01213bcafb

View File

@ -60,6 +60,7 @@ void *AllocTemporary(size_t n)
h->prev = NULL;
h->next = Head;
Head = h;
memset(&h[1], 0, n);
return (void *)&h[1];
}