Skip to content

Commit

Permalink
SDL_Wave: missing field 'length' initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
1bsyl committed Jun 12, 2019
1 parent f5a3478 commit cd011bb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/audio/SDL_wave.c
Expand Up @@ -1790,9 +1790,13 @@ WaveLoad(SDL_RWops *src, WaveFile *file, SDL_AudioSpec *spec, Uint8 **audio_buf,
SDL_bool RIFFlengthknown = SDL_FALSE;
WaveFormat *format = &file->format;
WaveChunk *chunk = &file->chunk;
WaveChunk RIFFchunk = {0};
WaveChunk fmtchunk = {0};
WaveChunk datachunk = {0};
WaveChunk RIFFchunk;
WaveChunk fmtchunk;
WaveChunk datachunk;

SDL_zero(RIFFchunk);
SDL_zero(fmtchunk);
SDL_zero(datachunk);

envchunkcountlimit = SDL_getenv("SDL_WAVE_CHUNK_LIMIT");
if (envchunkcountlimit != NULL) {
Expand Down

0 comments on commit cd011bb

Please sign in to comment.