dont crash if there are no more programs in queue

This commit is contained in:
Andreas Öman 2007-09-08 04:33:00 +00:00
parent 618ac78d3c
commit 0904a4fb35

2
epg.c
View file

@ -429,7 +429,7 @@ epg_channel_maintain(void)
continue;
e = TAILQ_NEXT(e, e_link);
if(now >= e->e_start && now < e->e_start + e->e_duration) {
if(e != NULL && now >= e->e_start && now < e->e_start + e->e_duration) {
ch->ch_epg_cur_event = e;
continue;
}