Skip to content

Commit

Permalink
windows: Don't let Visual Studio insert an implicit dependency on mem…
Browse files Browse the repository at this point in the history
…set().

Fixes Bugzilla #4662.
  • Loading branch information
icculus committed Jun 11, 2019
1 parent 399df54 commit 254eb67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/audio/SDL_wave.c
Expand Up @@ -1039,7 +1039,7 @@ IMA_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
int result;
size_t bytesleft, outputsize;
WaveChunk *chunk = &file->chunk;
ADPCM_DecoderState state = {0};
ADPCM_DecoderState state;
Sint8 *cstate;

if (chunk->size != chunk->length) {
Expand All @@ -1056,6 +1056,7 @@ IMA_ADPCM_Decode(WaveFile *file, Uint8 **audio_buf, Uint32 *audio_len)
return 0;
}

SDL_zero(state);
state.channels = file->format.channels;
state.blocksize = file->format.blockalign;
state.blockheadersize = (size_t)state.channels * 4;
Expand Down

0 comments on commit 254eb67

Please sign in to comment.