Rest of code assumes that allocated memory is filled with zeroes
This commit is contained in:
parent
f4916f9ee4
commit
01213bcafb
@ -60,6 +60,7 @@ void *AllocTemporary(size_t n)
|
|||||||
h->prev = NULL;
|
h->prev = NULL;
|
||||||
h->next = Head;
|
h->next = Head;
|
||||||
Head = h;
|
Head = h;
|
||||||
|
memset(&h[1], 0, n);
|
||||||
return (void *)&h[1];
|
return (void *)&h[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user