network: Fallback to GNOME as a hotspot name
If the hostname of the machine is empty for some reason.
This commit is contained in:
parent
dceae5f79a
commit
147713ef84
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue