ref: e845757894e091f93fb7b835eee66a4a3f13e088
parent: f88cbbaa4ab9692f1f78acf5bc5fbc8c8e1c54f8
author: Fabian Greffrath <[email protected]>
date: Sat Nov 25 06:11:02 EST 2017
midipipe: initialize state variables
--- a/src/i_midipipe.c
+++ b/src/i_midipipe.c
@@ -48,10 +48,10 @@
// True if the midi proces was initialized at least once and has not been
// explicitly shut down. This remains true if the server is momentarily
// unreachable.
-boolean midi_server_initialized;
+boolean midi_server_initialized = false;
// True if the current track is being handled via the MIDI server.
-boolean midi_server_registered;
+boolean midi_server_registered = false;
//=============================================================================
//
@@ -236,6 +236,8 @@
NET_WriteString(packet, filename);
ok = WritePipe(packet);
NET_FreePacket(packet);
+
+ midi_server_registered = false;
if (!ok)
{