From 0904a4fb35d842e2eb8f4a004c977d6b77bb4625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sat, 8 Sep 2007 04:33:00 +0000 Subject: [PATCH] dont crash if there are no more programs in queue --- epg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/epg.c b/epg.c index fd8b2a2d..ff2948df 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; }