notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fe2d3d
)
libretro, fix mmap replacement (content intialized to 0)
author
kub
<derkub@gmail.com>
Wed, 21 Apr 2021 19:55:13 +0000
(21:55 +0200)
committer
kub
<derkub@gmail.com>
Wed, 21 Apr 2021 20:02:36 +0000
(22:02 +0200)
platform/libretro/libretro.c
patch
|
blob
|
blame
|
history
diff --git
a/platform/libretro/libretro.c
b/platform/libretro/libretro.c
index
8a00d81
..
0969017
100644
(file)
--- 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)