mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-04 20:39:36 +00:00
Fix crash on Windows when no linphonerc file is configured.
This commit is contained in:
parent
1f141a11a7
commit
9133e161dd
1 changed files with 1 additions and 0 deletions
|
|
@ -720,6 +720,7 @@ static char *_lp_config_dirname(char *path) {
|
|||
}
|
||||
|
||||
void lp_config_write_relative_file(const LpConfig *lpconfig, const char *filename, const char *data) {
|
||||
if (lpconfig->filename == NULL) return;
|
||||
if(strlen(data) > 0) {
|
||||
char *dir = _lp_config_dirname(lpconfig->filename);
|
||||
char *filepath = ms_strdup_printf("%s/%s", dir, filename);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue