summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2019-11-28 20:35:09 +0100
committerJohann Friedrichs <johann.friedrichs@web.de>2019-11-28 20:35:09 +0100
commitce0862ef229eb52757e3731e2ee367c30a3a6883 (patch)
treeb686969474894f0aa5f91bc3d888f74c4e7fa0d5
parent84811de871e42264a67de26d2dd55fc2ab09cbd1 (diff)
downloadvdr-plugin-epgsearch-ce0862ef229eb52757e3731e2ee367c30a3a6883.tar.gz
vdr-plugin-epgsearch-ce0862ef229eb52757e3731e2ee367c30a3a6883.tar.bz2
Avoid problem with empty Event-Title
-rw-r--r--menu_whatson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/menu_whatson.c b/menu_whatson.c
index 3d46642..1b0b117 100644
--- a/menu_whatson.c
+++ b/menu_whatson.c
@@ -187,7 +187,7 @@ bool cMenuMyScheduleItem::Update(const cTimers* Timers, bool Force)
strreplace(buffer, '|', '\t');
char* title = NULL;
- title = strdup(event ? event->Title() : tr(">>> no info! <<<"));
+ title = strdup((event && event->Title()) ? event->Title() : tr(">>> no info! <<<"));
title = strreplacei(title, ":", "%colon%"); // assume a title has the form "a?b:c",
// we need to replace the colon to avoid misinterpretation of the expression as a condition