From 5f8b814440d99a2737118a11ed3b78d9ff5fc1b6 Mon Sep 17 00:00:00 2001 From: "E.Smith" <31170571+azlm8t@users.noreply.github.com> Date: Mon, 1 Oct 2018 16:52:51 +0100 Subject: [PATCH] epg: Change && to ||. --- src/epg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/epg.c b/src/epg.c index e038dbd44..b83ff72ed 100644 --- a/src/epg.c +++ b/src/epg.c @@ -1468,13 +1468,13 @@ epg_broadcast_t *epg_broadcast_get_next ( epg_broadcast_t *b ) const char *epg_broadcast_get_title ( epg_broadcast_t *b, const char *lang ) { - if (!b && !b->title) return NULL; + if (!b || !b->title) return NULL; return lang_str_get(b->title, lang); } const char *epg_broadcast_get_subtitle ( epg_broadcast_t *b, const char *lang ) { - if (!b && !b->subtitle) return NULL; + if (!b || !b->subtitle) return NULL; return lang_str_get(b->subtitle, lang); } -- 2.47.3