From c6f5a940021ad9664146c0bf4b91fe948847537f Mon Sep 17 00:00:00 2001 From: David Henningsson Date: Wed, 28 Jul 2010 20:21:17 +0000 Subject: [PATCH] Fix valgrind error (use of uninitialized variable in debug print) --- fluidsynth/src/midi/fluid_midi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fluidsynth/src/midi/fluid_midi.c b/fluidsynth/src/midi/fluid_midi.c index 479cda92..de10d75f 100644 --- a/fluidsynth/src/midi/fluid_midi.c +++ b/fluidsynth/src/midi/fluid_midi.c @@ -1120,6 +1120,8 @@ fluid_player_t* new_fluid_player(fluid_synth_t* synth) player->send_program_change = 1; player->miditempo = 480000; player->deltatime = 4.0; + player->cur_msec = 0; + player->cur_ticks = 0; player->use_system_timer = fluid_settings_str_equal(synth->settings, "player.timing-source", "system");