mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Change to calloc
This commit is contained in:
parent
19db4f63a7
commit
acf7c681b4
@ -272,7 +272,7 @@ audio_mixer_sound_t* audio_mixer_load_wav(const char* path, void *buffer, ssize_
|
||||
pcm = resampled;
|
||||
}
|
||||
|
||||
sound = (audio_mixer_sound_t*)malloc(sizeof(audio_mixer_sound_t));
|
||||
sound = (audio_mixer_sound_t*)calloc(1, sizeof(*sound));
|
||||
|
||||
if (!sound)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user