aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorMax Horn2003-03-09 01:23:40 +0000
committerMax Horn2003-03-09 01:23:40 +0000
commitb1fe351a51a61a1d8c83450c73397bbb4980738d (patch)
tree115c2234262537150cc2611b997734c4ba4df54c /backends/sdl
parent85176a81565c1f27b85f209a10116857a582fd6d (diff)
downloadscummvm-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.cpp2
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;