Merge branch 'master' of github.com:FreeRDP/FreeRDP

This commit is contained in:
Marc-André Moreau 2012-02-17 17:12:37 -05:00
commit 1b2db232af
2 changed files with 2 additions and 7 deletions

View File

@ -82,6 +82,8 @@ char* freerdp_get_home_path(rdpSettings* settings)
{ {
if (settings->home_path == NULL) if (settings->home_path == NULL)
settings->home_path = getenv(HOME_ENV_VARIABLE); settings->home_path = getenv(HOME_ENV_VARIABLE);
if (settings->home_path == NULL)
settings->home_path = xstrdup("/");
return settings->home_path; return settings->home_path;
} }

View File

@ -140,13 +140,6 @@ void registry_init(rdpRegistry* registry)
registry->available = true; registry->available = true;
if (home_path == NULL)
{
printf("could not get home path\n");
registry->available = false;
return;
}
registry->home = (char*) xstrdup(home_path); registry->home = (char*) xstrdup(home_path);
printf("home path: %s\n", registry->home); printf("home path: %s\n", registry->home);