diff options
Diffstat (limited to 'menu_whatson.c')
-rw-r--r-- | menu_whatson.c | 2 |
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 |