Merge branch 'master' of github.com:FreeRDP/FreeRDP
This commit is contained in:
commit
1b2db232af
@ -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;
|
||||
}
|
||||
|
@ -140,13 +140,6 @@ void registry_init(rdpRegistry* registry)
|
||||
|
||||
registry->available = true;
|
||||
|
||||
if (home_path == NULL)
|
||||
{
|
||||
printf("could not get home path\n");
|
||||
registry->available = false;
|
||||
return;
|
||||
}
|
||||
|
||||
registry->home = (char*) xstrdup(home_path);
|
||||
printf("home path: %s\n", registry->home);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user