]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
channels: do not allow empty string channel names, fixes #2628
authorJaroslav Kysela <perex@perex.cz>
Tue, 20 Jan 2015 10:33:12 +0000 (11:33 +0100)
committerJaroslav Kysela <perex@perex.cz>
Tue, 20 Jan 2015 10:33:12 +0000 (11:33 +0100)
src/channels.c

index 5e79511a082d63a7d61fe7340cc6ede6e9790158..c85376feb4ada2532b7659791d43189f6fb49fb3 100644 (file)
@@ -575,7 +575,7 @@ channel_set_tags_by_list ( channel_t *ch, htsmsg_t *tags )
 const char *
 channel_get_name ( channel_t *ch )
 {
-  static const char *blank = "";
+  static const char *blank = "{name-not-set}";
   const char *s;
   channel_service_mapping_t *csm;
   if (ch->ch_name && *ch->ch_name) return ch->ch_name;