dvr: stop possible NULL ptr if messing about with config

This commit is contained in:
Adam Sutton 2013-01-31 10:20:17 +00:00
parent 0b16c754c1
commit 51fa4bb0e3

View file

@ -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;