Description may be NULL so don't deref it.
This commit is contained in:
parent
2232af1d3b
commit
f6f7055f24
1 changed files with 2 additions and 1 deletions
3
htsp.c
3
htsp.c
|
@ -345,7 +345,8 @@ htsp_method_getEvent(htsp_connection_t *htsp, htsmsg_t *in)
|
|||
htsmsg_add_u32(out, "start", e->e_start);
|
||||
htsmsg_add_u32(out, "stop", e->e_stop);
|
||||
htsmsg_add_str(out, "title", e->e_title);
|
||||
htsmsg_add_str(out, "description", e->e_desc);
|
||||
if(e->e_desc != NULL)
|
||||
htsmsg_add_str(out, "description", e->e_desc);
|
||||
|
||||
n = RB_NEXT(e, e_channel_link);
|
||||
if(n != NULL)
|
||||
|
|
Loading…
Add table
Reference in a new issue