From ed6a110d4493cbad3efc8852d74bf4739b4c12ec Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 16 Jun 2022 21:25:21 -0500 Subject: [PATCH] initialize SF_INFO before loading sample --- src/engine/engine.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 76b2cd11a..dfac034cd 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -2183,6 +2183,7 @@ int DivEngine::addSampleFromFile(const char* path) { return -1; #else SF_INFO si; + memset(&si,0,sizeof(SF_INFO)); SNDFILE* f=sf_open(path,SFM_READ,&si); if (f==NULL) { BUSY_END;