Fix a possible NULL dereference

This commit is contained in:
derselbst 2020-03-03 16:48:24 +01:00
parent 33f687704f
commit ddbd0afcc8

View file

@ -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);
}