diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/parse_ini.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parse_ini.c b/lib/parse_ini.c index e19af1bb..f352d78c 100644 --- a/lib/parse_ini.c +++ b/lib/parse_ini.c @@ -339,7 +339,8 @@ static char *default_file_in_path(void){ static char *default_file(void){ char **p, *ini_file; - if((ini_file=default_file_in_path())!=NULL) + if((ini_file=getenv("MP_CONFIG_FILE"))!=NULL || + (ini_file=default_file_in_path())!=NULL) return ini_file; for(p=default_ini_path_names; *p!=NULL; p++) if (access(*p, F_OK)==0) |