mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
parent
99fbb23ec5
commit
ff06361c71
@ -192,7 +192,8 @@ extern "C" void *malloc(size_t size)
|
||||
extern "C" void *calloc(size_t nmemb, size_t size)
|
||||
{
|
||||
void *addr = malloc(nmemb*size);
|
||||
Genode::memset(addr, 0, nmemb*size);
|
||||
if (addr)
|
||||
Genode::memset(addr, 0, nmemb*size);
|
||||
return addr;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user