diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2017-05-17 09:17:44 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2017-05-17 09:17:44 +0200 |
commit | 50211c706a120cf1d7b60898c5e43b15dff6455b (patch) | |
tree | d12a928781aff5f8fee5d4bf6fad5ae57f03b8ae | |
parent | ce42e42ed7a4ef206196f68f698ba6cce2b5b7de (diff) | |
download | vdr-50211c706a120cf1d7b60898c5e43b15dff6455b.tar.gz vdr-50211c706a120cf1d7b60898c5e43b15dff6455b.tar.bz2 |
Fixed a crash in case the bottom text of a CAM menu is empty
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | menu.c | 6 |
2 files changed, 5 insertions, 4 deletions
@@ -8991,7 +8991,7 @@ Video Disk Recorder Revision History current channel is listed. - Fixed a possible crash when pulling the CAM while decrypting a channel with MTD. -2017-05-12: Version 2.3.5 +2017-05-17: Version 2.3.5 - CAMs are now sent a generated EIT packet that contains a single 'present event' for the current SID, in order to avoid any parental rating dialogs. @@ -9024,3 +9024,4 @@ Video Disk Recorder Revision History - Fixed handling line numbers in error messages when reading EPG data. - Added handling RI_HOST_CONTROL to the CI protocol (no actual processing, but its presence is required by some CAMs). +- Fixed a crash in case the bottom text of a CAM menu is empty. @@ -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()); } |