[gnome-control-center] network: Fallback to GNOME as a hotspot name
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] network: Fallback to GNOME as a hotspot name
- Date: Fri, 26 Aug 2011 20:27:35 +0000 (UTC)
commit 147713ef844221d0f47da3f81dab8e8982ba5b4f
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 26 21:27:06 2011 +0100
network: Fallback to GNOME as a hotspot name
If the hostname of the machine is empty for some reason.
panels/network/cc-network-panel.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 4474fb5..f837426 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]