Mercurial > SDL_sound_CoreAudio
diff decoders/timidity/timidity.c @ 254:a73c51c12452
Memory access fixes.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Mon, 11 Feb 2002 07:04:06 +0000 |
parents | e122de403a2d |
children | 3da217bd0e48 |
line wrap: on
line diff
--- a/decoders/timidity/timidity.c Fri Feb 08 01:53:55 2002 +0000 +++ b/decoders/timidity/timidity.c Mon Feb 11 07:04:06 2002 +0000 @@ -446,11 +446,13 @@ if (master_tonebank[i]) { song->tonebank[i] = safe_malloc(sizeof(ToneBank)); + memset(song->tonebank[i], 0, sizeof(ToneBank)); song->tonebank[i]->tone = master_tonebank[i]->tone; } if (master_drumset[i]) { song->drumset[i] = safe_malloc(sizeof(ToneBank)); + memset(song->drumset[i], 0, sizeof(ToneBank)); song->drumset[i]->tone = master_drumset[i]->tone; } }