summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2017-06-22 06:55:28 +0200
committerhorchi <vdr@jwendel.de>2017-06-22 06:55:28 +0200
commit2ae802510575f08d7b2cb5c3aa128eb6ae9d5d2f (patch)
tree9a33386a75fa324c11674c19514d08d87f77a2b8
parent5c3837c9729607b911011597f2b1c1869d54a714 (diff)
downloadvdr-plugin-epg2vdr-2ae802510575f08d7b2cb5c3aa128eb6ae9d5d2f.tar.gz
vdr-plugin-epg2vdr-2ae802510575f08d7b2cb5c3aa128eb6ae9d5d2f.tar.bz2
fixed compile error
-rw-r--r--update.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/update.c b/update.c
index ed3547e..8c2a02e 100644
--- a/update.c
+++ b/update.c
@@ -1500,9 +1500,9 @@ int cUpdate::refreshEpg(const char* forChannelId, int maxTries)
// get channel and schedule of channel
- if (channel = channels->GetByChannelID(channelId, true))
+ if (channels && schedules && (channel = channels->GetByChannelID(channelId, true)))
s = (cSchedule*)schedules->GetSchedule(channel, true);
- else
+ else if (channels && schedules)
tell(0, "Error: Channel with ID '%s' don't exist on this VDR", mapDb->getStrValue("ChannelId"));
if (!schedules || !channels || !timers || !s)