From: Andreas Ă–man Date: Sat, 8 Sep 2007 04:33:00 +0000 (+0000) Subject: dont crash if there are no more programs in queue X-Git-Tag: 2.12~1450 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0904a4fb35d842e2eb8f4a004c977d6b77bb4625;p=thirdparty%2Ftvheadend.git dont crash if there are no more programs in queue --- diff --git a/epg.c b/epg.c index fd8b2a2da..ff2948dfb 100644 --- a/epg.c +++ b/epg.c @@ -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; }