diff options
Diffstat (limited to 'src/modules/module-zeroconf-publish.c')
-rw-r--r-- | src/modules/module-zeroconf-publish.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/module-zeroconf-publish.c b/src/modules/module-zeroconf-publish.c index 23a188b3..16315d35 100644 --- a/src/modules/module-zeroconf-publish.c +++ b/src/modules/module-zeroconf-publish.c @@ -185,7 +185,8 @@ static int publish_service(struct userdata *u, struct service *s) { txt = avahi_string_list_add_printf(txt, "rate=%u", ss.rate); txt = avahi_string_list_add_printf(txt, "channels=%u", ss.channels); txt = avahi_string_list_add_pair(txt, "format", pa_sample_format_to_string(ss.format)); - txt = avahi_string_list_add_pair(txt, "description", description); + if (description) + txt = avahi_string_list_add_pair(txt, "description", description); type = s->loaded.type; } else if (s->autoload.valid) |