Commit 9133e161 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Fix crash on Windows when no linphonerc file is configured.

parent 1f141a11
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment