diff options
Diffstat (limited to 'backends/midi.c')
-rw-r--r-- | backends/midi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/midi.c b/backends/midi.c index 88b841c..571a61d 100644 --- a/backends/midi.c +++ b/backends/midi.c @@ -362,7 +362,7 @@ static int midi_start(){ fprintf(stderr, "MIDI client ID is %d\n", snd_seq_client_id(sequencer)); //update the sequencer client name - if(snd_seq_set_client_name(sequencer, sequencer_name) < 0){ + if(snd_seq_set_client_name(sequencer, sequencer_name ? sequencer_name : "MIDIMonster") < 0){ fprintf(stderr, "Failed to set MIDI client name to %s\n", sequencer_name); return 1; } |