src/audio/SDL_wave.c
changeset 12825 4fb5e61382b7
parent 12814 cee49246e1bc
child 12842 a66900915e4e
     1.1 --- a/src/audio/SDL_wave.c	Tue Jun 11 01:14:24 2019 -0400
     1.2 +++ b/src/audio/SDL_wave.c	Tue Jun 11 02:08:31 2019 -0400
     1.3 @@ -1039,7 +1039,7 @@
     1.4      int result;
     1.5      size_t bytesleft, outputsize;
     1.6      WaveChunk *chunk = &file->chunk;
     1.7 -    ADPCM_DecoderState state = {0};
     1.8 +    ADPCM_DecoderState state;
     1.9      Sint8 *cstate;
    1.10  
    1.11      if (chunk->size != chunk->length) {
    1.12 @@ -1056,6 +1056,7 @@
    1.13          return 0;
    1.14      }
    1.15  
    1.16 +    SDL_zero(state);
    1.17      state.channels = file->format.channels;
    1.18      state.blocksize = file->format.blockalign;
    1.19      state.blockheadersize = (size_t)state.channels * 4;