From 083c519ec2249fb503a3b596cdd162c1f24d43e3 Mon Sep 17 00:00:00 2001 From: kub Date: Wed, 21 Apr 2021 21:55:13 +0200 Subject: [PATCH] libretro, fix mmap replacement (content intialized to 0) --- platform/libretro/libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/libretro/libretro.c b/platform/libretro/libretro.c index 8a00d811..0969017b 100644 --- a/platform/libretro/libretro.c +++ b/platform/libretro/libretro.c @@ -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) -- 2.39.5