mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Fix a possible NULL dereference
This commit is contained in:
parent
33f687704f
commit
ddbd0afcc8
1 changed files with 5 additions and 4 deletions
|
@ -1009,12 +1009,13 @@ int main(int argc, char **argv)
|
|||
}
|
||||
|
||||
fluid_settings_dupstr(settings, "audio.file.name", &filename);
|
||||
if (!quiet) {
|
||||
printf("Rendering audio to file '%s'..\n", filename);
|
||||
}
|
||||
|
||||
if(filename)
|
||||
{
|
||||
if (!quiet)
|
||||
{
|
||||
printf("Rendering audio to file '%s'..\n", filename);
|
||||
}
|
||||
|
||||
FLUID_FREE(filename);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue