Change to calloc

This commit is contained in:
twinaphex 2017-05-13 07:56:44 +02:00
parent 19db4f63a7
commit acf7c681b4

View File

@ -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)
{