new automation state model, sort of working, but not really
[ardour.git] / libs / ardour / session_midi.cc
index 1af00ca337ed3b9cd704303cccee9f5c129ec2e7..fe08b4012721e0c9f7c699e1d0d84362ae50e10a 100644 (file)
@@ -1111,7 +1111,7 @@ Session::terminate_midi_thread ()
 void
 Session::poke_midi_thread ()
 {
-       char c;
+       static char c = 0;
 
        if (write (midi_request_pipe[1], &c, 1) != 1) {
                error << string_compose(_("cannot send signal to midi thread! (%1)"), strerror (errno)) << endmsg;