shithub: sf2mid

Download patch

ref: 7e646b6916145bca8c82f178cd0ef793f0da80d7
parent: 347c18f8e6073c5836033e9f82054fab25afd5cd
parent: 6f9a3a0456b87cef869726f6546e87065bfa4663
author: Bernhard Schelling <14200249+schellingb@users.noreply.github.com>
date: Thu Oct 11 13:44:27 EDT 2018

Merge pull request #25 from kavika13/patch-1

Fix C4703 (uninitialized variable) on MSVC 2015

--- a/tsf.h
+++ b/tsf.h
@@ -1527,7 +1527,7 @@
 
 TSFDEF void tsf_channel_note_off(tsf* f, int channel, int key)
 {
-	struct tsf_voice *v = f->voices, *vEnd = v + f->voiceNum, *vMatchFirst = TSF_NULL, *vMatchLast;
+	struct tsf_voice *v = f->voices, *vEnd = v + f->voiceNum, *vMatchFirst = TSF_NULL, *vMatchLast = TSF_NULL;
 	for (; v != vEnd; v++)
 	{
 		//Find the first and last entry in the voices list with matching channel, key and look up the smallest play index