diff --git a/external/st_audiofile/src/st_audiofile_sndfile.c b/external/st_audiofile/src/st_audiofile_sndfile.c index c1b8fed8..31cc115d 100644 --- a/external/st_audiofile/src/st_audiofile_sndfile.c +++ b/external/st_audiofile/src/st_audiofile_sndfile.c @@ -12,6 +12,7 @@ #endif #include #include +#include struct st_audio_file { SNDFILE* snd; @@ -24,6 +25,8 @@ st_audio_file* st_open_file(const char* filename) if (!af) return NULL; + memset(&af->info, 0, sizeof(SF_INFO)); + af->snd = sf_open(filename, SFM_READ, &af->info); if (!af->snd) { free(af);