From ee2c46cd7ca021ec5f841f58e0995c04c65753df Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 6 Oct 2006 03:40:57 +0000 Subject: [PATCH] One more minor cleanup in arts driver. --- src/audio/arts/SDL_artsaudio.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/audio/arts/SDL_artsaudio.c b/src/audio/arts/SDL_artsaudio.c index 69e0be570..7dc0e7616 100644 --- a/src/audio/arts/SDL_artsaudio.c +++ b/src/audio/arts/SDL_artsaudio.c @@ -270,8 +270,8 @@ static int ARTS_OpenDevice(_THIS, const char *devname, int iscapture) { int rc = 0; - int bits, frag_spec; - SDL_AudioFormat test_format, format; + int bits = 0, frag_spec = 0; + SDL_AudioFormat test_format = 0, format = 0; /* Initialize all variables that we clean on shutdown */ this->hidden = (struct SDL_PrivateAudioData *) @@ -289,8 +289,6 @@ ARTS_OpenDevice(_THIS, const char *devname, int iscapture) } /* Try for a closest match on audio format */ - format = 0; - bits = 0; for (test_format = SDL_FirstAudioFormat(this->spec.format); !format && test_format;) { #ifdef DEBUG_AUDIO