diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2021-04-29 09:19:58 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2021-04-29 09:19:58 +0200 |
commit | 10ffd08c826e2e49cf012a62977cc5ccf0be2d1c (patch) | |
tree | 570656602ec2e37dc90a7b387ae13b53eafaf658 /epg.c | |
parent | 4a199fe4acba6da192c0fa5b847760ca65e2c365 (diff) | |
download | vdr-10ffd08c826e2e49cf012a62977cc5ccf0be2d1c.tar.gz vdr-10ffd08c826e2e49cf012a62977cc5ccf0be2d1c.tar.bz2 |
Fixed a possible crash in the Schedule menu, in case Setup.EPGLinger is 0
Diffstat (limited to 'epg.c')
-rw-r--r-- | epg.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -7,7 +7,7 @@ * Original version (as used in VDR before 1.3.0) written by * Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>. * - * $Id: epg.c 5.5 2021/04/28 20:44:56 kls Exp $ + * $Id: epg.c 5.6 2021/04/29 09:19:58 kls Exp $ */ #include "epg.h" @@ -1385,6 +1385,8 @@ const cSchedule *cSchedules::GetSchedule(const cChannel *Channel, bool AddIfMiss { // This is not very beautiful, but it dramatically speeds up the // "What's on now/next?" menus. + if (!Channel) + return NULL; static cSchedule DummySchedule(tChannelID::InvalidID); if (!Channel->schedule) Channel->schedule = GetSchedule(Channel->GetChannelID()); |