mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-03-01 15:10:43 +00:00
Fix system-wide config file not loaded (#1121)
This commit is contained in:
parent
58ec0d8eb7
commit
3a3ed4f783
1 changed files with 2 additions and 2 deletions
|
@ -891,13 +891,13 @@ int main(int argc, char **argv)
|
|||
if(config_file == NULL)
|
||||
{
|
||||
config_file = fluid_get_userconf(buf, sizeof(buf));
|
||||
if(config_file == NULL)
|
||||
if(config_file == NULL || !g_file_test(config_file, G_FILE_TEST_EXISTS))
|
||||
{
|
||||
config_file = fluid_get_sysconf(buf, sizeof(buf));
|
||||
}
|
||||
|
||||
/* if the automatically selected command file does not exist, do not even attempt to open it */
|
||||
if(!g_file_test(config_file, G_FILE_TEST_EXISTS))
|
||||
if(config_file != NULL && !g_file_test(config_file, G_FILE_TEST_EXISTS))
|
||||
{
|
||||
config_file = NULL;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue