diff options
author | Max Horn | 2003-03-09 01:23:40 +0000 |
---|---|---|
committer | Max Horn | 2003-03-09 01:23:40 +0000 |
commit | b1fe351a51a61a1d8c83450c73397bbb4980738d (patch) | |
tree | 115c2234262537150cc2611b997734c4ba4df54c /backends/sdl | |
parent | 85176a81565c1f27b85f209a10116857a582fd6d (diff) | |
download | scummvm-rg350-b1fe351a51a61a1d8c83450c73397bbb4980738d.tar.gz scummvm-rg350-b1fe351a51a61a1d8c83450c73397bbb4980738d.tar.bz2 scummvm-rg350-b1fe351a51a61a1d8c83450c73397bbb4980738d.zip |
fixed valgrind warning (though I don't see why this memset should be needed, after reviewing the SDL_OpenAudio source)
svn-id: r6783
Diffstat (limited to 'backends/sdl')
-rw-r--r-- | backends/sdl/sdl-common.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index b9f1816c1c..e1686b3e06 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -791,6 +791,8 @@ bool OSystem_SDL_Common::poll_event(Event *event) { bool OSystem_SDL_Common::set_sound_proc(void *param, SoundProc *proc, byte format) { SDL_AudioSpec desired; + memset(&desired, 0, sizeof(desired)); + /* only one format supported at the moment */ desired.freq = SAMPLES_PER_SEC; desired.format = AUDIO_S16SYS; |