Description: Cherry pick commit 8293c5b4cb072038fe2bdc15207ee6de4e291879
 Cherry pick fix for crash when $HOME is unset.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1011790

Origin: upstream https://github.com/FreeRDP/FreeRDP/commit/8293c5b4cb072038fe2bdc15207ee6de4e291879

--- freerdp-1.0.1.orig/libfreerdp-utils/file.c
+++ freerdp-1.0.1/libfreerdp-utils/file.c
@@ -82,6 +82,8 @@ char* freerdp_get_home_path(rdpSettings*
 {
 	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;
 }
--- freerdp-1.0.1.orig/libfreerdp-utils/registry.c
+++ freerdp-1.0.1/libfreerdp-utils/registry.c
@@ -131,13 +131,6 @@ void registry_init(rdpRegistry* registry
 	else
 		home_path = registry->settings->home_path;
 
-	if (home_path == NULL)
-	{
-		printf("could not get home path\n");
-		registry->available = false;
-		return;
-	}
-
 	registry->available = true;
 
 	if (home_path == NULL)
