Fix: [Fluidsynth] Crash when debug output enabled (#9446)

This commit is contained in:
Charles Pigott 2021-07-19 10:36:35 +01:00 committed by GitHub
parent 9421cb1e2c
commit 1e529e1632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ const char *MusicDriver_FluidSynth::Start(const StringList &param)
const char *sfont_name = GetDriverParam(param, "soundfont");
int sfont_id;
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name);
Debug(driver, 1, "Fluidsynth: sf {}", sfont_name != nullptr ? sfont_name : "(null)");
/* Create the settings. */
_midi.settings = new_fluid_settings();