]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epg: Change && to ||.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Mon, 1 Oct 2018 15:52:51 +0000 (16:52 +0100)
committerperexg <perex@perex.cz>
Tue, 2 Oct 2018 14:04:06 +0000 (16:04 +0200)
src/epg.c

index e038dbd449f9484d76644b7d20df9291529ab066..b83ff72ed75315f10d5a5425836869c32ac7c8e6 100644 (file)
--- 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);
 }