network: Fallback to GNOME as a hotspot name

If the hostname of the machine is empty for some reason.
This commit is contained in:
Bastien Nocera 2011-08-26 21:27:06 +01:00
parent dceae5f79a
commit 147713ef84

View file

@ -2802,6 +2802,10 @@ get_hostname (void)
str = g_strdup (g_get_host_name ());
}
if (str == NULL || *str == '\0') {
str = g_strdup ("GNOME");
}
return str;
}