From 50211c706a120cf1d7b60898c5e43b15dff6455b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Wed, 17 May 2017 09:17:44 +0200 Subject: Fixed a crash in case the bottom text of a CAM menu is empty --- menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index ac3c086c..43ff7280 100644 --- a/menu.c +++ b/menu.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 4.26 2017/05/01 13:01:00 kls Exp $ + * $Id: menu.c 4.27 2017/05/17 09:15:51 kls Exp $ */ #include "menu.h" @@ -2243,7 +2243,7 @@ void cMenuCam::Set(void) SetHasHotkeys(ciMenu->Selectable()); GenerateTitle(ciMenu->TitleText()); dsyslog("CAM %d: '%s'", camSlot->SlotNumber(), ciMenu->TitleText()); - if (*ciMenu->SubTitleText()) { + if (!isempty(ciMenu->SubTitleText())) { dsyslog("CAM %d: '%s'", camSlot->SlotNumber(), ciMenu->SubTitleText()); AddMultiLineItem(ciMenu->SubTitleText()); offset = Count(); @@ -2252,7 +2252,7 @@ void cMenuCam::Set(void) Add(new cOsdItem(hk(ciMenu->Entry(i)), osUnknown, ciMenu->Selectable())); dsyslog("CAM %d: '%s'", camSlot->SlotNumber(), ciMenu->Entry(i)); } - if (*ciMenu->BottomText()) { + if (!isempty(ciMenu->BottomText())) { AddMultiLineItem(ciMenu->BottomText()); dsyslog("CAM %d: '%s'", camSlot->SlotNumber(), ciMenu->BottomText()); } -- cgit v1.2.3