From d06c5efa54588884530012043ed9f64b853d7b7e Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 22 Nov 2022 15:53:07 +0100 Subject: [PATCH] Avoiding a compiler warning --- menu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/menu.c b/menu.c index 857fb216..d80a74c5 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 5.7 2022/03/03 14:44:47 kls Exp $ + * $Id: menu.c 5.8 2022/11/22 15:53:07 kls Exp $ */ #include "menu.h" @@ -2097,7 +2097,7 @@ eOSState cMenuSchedule::Switch(void) if (item) { LOCK_CHANNELS_READ; const cChannel *Channel = NULL; - if (Channel = Channels->GetByChannelID(item->event->ChannelID(), true)) { + if ((Channel = Channels->GetByChannelID(item->event->ChannelID(), true)) != NULL) { if (!Channels->SwitchTo(Channel->Number())) Channel = NULL; }