SDL_Wave: missing field 'length' initializer
authorSylvain Becker <sylvain.becker@gmail.com>
Wed, 12 Jun 2019 10:42:02 +0200
changeset 12842a66900915e4e
parent 12841 8a0e446a4cf9
child 12843 dcc0e295db57
SDL_Wave: missing field 'length' initializer
src/audio/SDL_wave.c
     1.1 --- a/src/audio/SDL_wave.c	Tue Jun 11 21:57:30 2019 -0400
     1.2 +++ b/src/audio/SDL_wave.c	Wed Jun 12 10:42:02 2019 +0200
     1.3 @@ -1790,9 +1790,13 @@
     1.4      SDL_bool RIFFlengthknown = SDL_FALSE;
     1.5      WaveFormat *format = &file->format;
     1.6      WaveChunk *chunk = &file->chunk;
     1.7 -    WaveChunk RIFFchunk = {0};
     1.8 -    WaveChunk fmtchunk = {0};
     1.9 -    WaveChunk datachunk = {0};
    1.10 +    WaveChunk RIFFchunk;
    1.11 +    WaveChunk fmtchunk;
    1.12 +    WaveChunk datachunk;
    1.13 +
    1.14 +    SDL_zero(RIFFchunk);
    1.15 +    SDL_zero(fmtchunk);
    1.16 +    SDL_zero(datachunk);
    1.17  
    1.18      envchunkcountlimit = SDL_getenv("SDL_WAVE_CHUNK_LIMIT");
    1.19      if (envchunkcountlimit != NULL) {