# HG changeset patch # User Ryan C. Gordon # Date 1160106057 0 # Node ID 8e1af9ff0e1fbd389fa7071b4193d22e95dcbf3d # Parent 92f7304e50ff718ed9d2bef183e36f1ea7232a53 One more minor cleanup in arts driver. diff -r 92f7304e50ff -r 8e1af9ff0e1f src/audio/arts/SDL_artsaudio.c --- a/src/audio/arts/SDL_artsaudio.c Fri Oct 06 03:32:48 2006 +0000 +++ b/src/audio/arts/SDL_artsaudio.c Fri Oct 06 03:40:57 2006 +0000 @@ -270,8 +270,8 @@ 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 @@ } /* 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