If HOME environment variable is not configured, use / as home. Having NULL home_path will crash freerdp.
This commit is contained in:
parent
e03734be30
commit
036c8ce47d
@ -82,6 +82,8 @@ char* freerdp_get_home_path(rdpSettings* settings)
|
||||
{
|
||||
if (settings->home_path == NULL)
|
||||
settings->home_path = getenv(HOME_ENV_VARIABLE);
|
||||
if (settings->home_path == NULL)
|
||||
settings->home_path = xstrdup("/");
|
||||
|
||||
return settings->home_path;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user