libretro, fix mmap replacement (content intialized to 0)

This commit is contained in:
kub 2021-04-21 21:55:13 +02:00
parent 7fe2d3d33f
commit 083c519ec2

View file

@ -353,7 +353,7 @@ static void munmap(void *addr, size_t length)
void* mmap(void *desired_addr, size_t len, int mmap_prot, int mmap_flags, int fildes, size_t off)
{
return malloc(len);
return calloc(1, len);
}
void munmap(void *base_addr, size_t len)