1
Subject: Check if mDNS is active before asking for a local hostname.
5
diff --git a/server/vino-mdns.c b/server/vino-mdns.c
6
index 0a742f4..4f7e693 100644
7
--- a/server/vino-mdns.c
8
+++ b/server/vino-mdns.c
9
@@ -356,7 +356,7 @@ vino_mdns_shutdown (void)
11
vino_mdns_get_hostname (void)
13
- return avahi_client_get_host_name_fqdn (mdns_client);
14
+ return mdns_client ? avahi_client_get_host_name_fqdn (mdns_client) : "";
17
#else /* !defined (VINO_HAVE_AVAHI) */