dvr: stop possible NULL ptr if messing about with config
This commit is contained in:
parent
0b16c754c1
commit
51fa4bb0e3
1 changed files with 2 additions and 0 deletions
|
@ -849,6 +849,8 @@ dvr_entry_find_by_event(epg_broadcast_t *e)
|
|||
{
|
||||
dvr_entry_t *de;
|
||||
|
||||
if(!e->channel) return NULL;
|
||||
|
||||
LIST_FOREACH(de, &e->channel->ch_dvrs, de_channel_link)
|
||||
if(de->de_bcast == e) return de;
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue