aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zeroconf.c')
-rw-r--r--src/zeroconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c
index 54bab6551..d52f4a275 100644
--- a/src/zeroconf.c
+++ b/src/zeroconf.c
@@ -34,14 +34,14 @@ static int zeroconfEnabled;
void initZeroconf(void)
{
- const char *serviceName = SERVICE_NAME;
+ const char *serviceName;
zeroconfEnabled = config_get_bool(CONF_ZEROCONF_ENABLED,
DEFAULT_ZEROCONF_ENABLED);
if (!zeroconfEnabled)
return;
- serviceName = config_get_string(CONF_ZEROCONF_NAME, NULL);
+ serviceName = config_get_string(CONF_ZEROCONF_NAME, SERVICE_NAME);
#ifdef HAVE_AVAHI
init_avahi(serviceName);