Check for NULL name in get_fluidsynth_dest

Closes ticket #138
This commit is contained in:
Jai Veer 2015-05-19 10:40:30 +05:30 committed by David Henningsson
parent 2cc0d0ea17
commit d08853c685

View file

@ -267,7 +267,7 @@ static int get_fluidsynth_dest(fluid_sequencer_t* seq)
for (i = 0; i < j; i++) {
id = fluid_sequencer_get_client_id(seq, i);
name = fluid_sequencer_get_client_name(seq, id);
if (strcmp(name, "fluidsynth") == 0) {
if (name && (strcmp(name, "fluidsynth") == 0)) {
return id;
}
}