diff options
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/hostname.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/hostname.c b/plugins/hostname.c index 0b75fac20..74c25df5b 100644 --- a/plugins/hostname.c +++ b/plugins/hostname.c @@ -117,6 +117,12 @@ static void property_changed(GDBusProxy *proxy, const char *name, DBG("pretty hostname: %s", str); + if (g_str_equal(str, "") == TRUE) { + g_free(pretty_hostname); + pretty_hostname = NULL; + return; + } + g_free(pretty_hostname); pretty_hostname = g_strdup(str); |
