htsp: add NULL ptr check on channel name
This commit is contained in:
parent
78668f0a3c
commit
dfa5fc994e
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ htsp_build_channel(channel_t *ch, const char *method, htsp_connection_t *htsp)
|
|||
htsmsg_add_u32(out, "channelId", channel_get_id(ch));
|
||||
htsmsg_add_u32(out, "channelNumber", ch->ch_number);
|
||||
|
||||
htsmsg_add_str(out, "channelName", ch->ch_name);
|
||||
htsmsg_add_str(out, "channelName", ch->ch_name ?: "");
|
||||
if(ch->ch_icon != NULL) {
|
||||
uint32_t id;
|
||||
struct sockaddr_storage addr;
|
||||
|
|
Loading…
Add table
Reference in a new issue