Commit 00a680f1 authored by Ronan's avatar Ronan
Browse files

fix(linphonecore): use USERNAME env var instead of USER on Windows

parent 41932ab5
Pipeline #172 failed with stage
in 0 seconds
......@@ -1381,7 +1381,12 @@ static void sip_config_read(LinphoneCore *lc) {
const char *username=NULL;
#if !defined(LINPHONE_WINDOWS_UNIVERSAL) && !defined(LINPHONE_WINDOWS_PHONE) // Using getenv is forbidden on Windows 10 and Windows Phone
#if defined _WIN32
username = getenv("USERNAME");
username = getenv("USER");
#endif // if defined _WIN32
if (hostname==NULL) hostname=getenv("HOSTNAME");
if (hostname==NULL)
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