mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-03 11:49:31 +00:00
fix bad handling of config files
This commit is contained in:
parent
23e177a1f3
commit
371adb84bb
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ char *linphone_gtk_get_config_file(const char *filename){
|
|||
if (filename==NULL) filename=CONFIG_FILE;
|
||||
/*try accessing a local file first if exists*/
|
||||
if (access(CONFIG_FILE,F_OK)==0){
|
||||
snprintf(config_file,path_max,"%s",CONFIG_FILE);
|
||||
snprintf(config_file,path_max,"%s",filename);
|
||||
}else{
|
||||
#ifdef WIN32
|
||||
const char *appdata=getenv("APPDATA");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue