From: Jaroslav Kysela Date: Fri, 28 Nov 2014 16:45:26 +0000 (+0100) Subject: epg query: fix thinko X-Git-Tag: v4.1~676 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=452ca85ff60f2d9c3f1e68de54ef88f2a23b4a48;p=thirdparty%2Ftvheadend.git epg query: fix thinko --- diff --git a/src/epg.c b/src/epg.c index e29541ad1..82f69808d 100644 --- a/src/epg.c +++ b/src/epg.c @@ -2552,7 +2552,7 @@ epg_query ( epg_query_t *eq, access_t *perm ) LIST_FOREACH(ctm, &tag->ct_ctms, ctm_tag_link) { ch2 = ctm->ctm_channel; if(ch2 == channel || channel == NULL) - if (channel_access(channel, perm, 0)) + if (channel_access(ch2, perm, 0)) _eq_add_channel(eq, ch2); }