diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/zeroconf.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/zeroconf.c b/src/zeroconf.c index e51e5f045..f84eb9602 100644 --- a/src/zeroconf.c +++ b/src/zeroconf.c @@ -22,8 +22,6 @@ #include <glib.h> -#include <string.h> - /* The default service name to publish * (overridden by 'zeroconf_name' config parameter) */ @@ -47,7 +45,7 @@ void initZeroconf(void) param = getConfigParam(CONF_ZEROCONF_NAME); - if (param && strlen(param->value) > 0) + if (param && *param->value != 0) serviceName = param->value; #ifdef HAVE_AVAHI |