mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-22 07:30:50 +00:00
fix uninitialized voice in test_fluid_voice_add.c
This commit is contained in:
parent
f2b42aba11
commit
adf9814762
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ int main(void)
|
|||
|
||||
voice = new_fluid_voice(NULL, 22050);
|
||||
TEST_ASSERT(voice != NULL);
|
||||
voice->channel = NULL;
|
||||
voice->mod_count = 0;
|
||||
|
||||
fluid_voice_print_mod(voice);
|
||||
voice_mod_count = fluid_voice_get_count_modulators(voice);
|
||||
TEST_ASSERT(voice_mod_count == 0);
|
||||
|
|
Loading…
Reference in a new issue