mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-11 06:54:18 +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)
|
extern "C" void *calloc(size_t nmemb, size_t size)
|
||||||
{
|
{
|
||||||
void *addr = malloc(nmemb*size);
|
void *addr = malloc(nmemb*size);
|
||||||
Genode::memset(addr, 0, nmemb*size);
|
if (addr)
|
||||||
|
Genode::memset(addr, 0, nmemb*size);
|
||||||
return addr;
|
return addr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user