From 1e529e16329b905e625bb69cc501edbc478186bc Mon Sep 17 00:00:00 2001 From: Charles Pigott Date: Mon, 19 Jul 2021 10:36:35 +0100 Subject: Fix: [Fluidsynth] Crash when debug output enabled (#9446) --- src/music/fluidsynth.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/music/fluidsynth.cpp b/src/music/fluidsynth.cpp index dc1a0a319..211bc959e 100644 --- a/src/music/fluidsynth.cpp +++ b/src/music/fluidsynth.cpp @@ -65,7 +65,7 @@ const char *MusicDriver_FluidSynth::Start(const StringList ¶m) 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(); -- cgit v1.2.3-54-g00ecf