From ce0862ef229eb52757e3731e2ee367c30a3a6883 Mon Sep 17 00:00:00 2001 From: Johann Friedrichs Date: Thu, 28 Nov 2019 20:35:09 +0100 Subject: Avoid problem with empty Event-Title --- menu_whatson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3