summaryrefslogtreecommitdiff
path: root/menuitems.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2013-02-15 14:27:26 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2013-02-15 14:27:26 +0100
commit92888b3e577d122f5493b418c6b7b2ed28117c0a (patch)
tree75ae79e5292d78c7c93417a27210e72fc96442cd /menuitems.c
parent441ee74ff1ed13af26c5ff8e1fb487cf56aceed0 (diff)
downloadvdr-92888b3e577d122f5493b418c6b7b2ed28117c0a.tar.gz
vdr-92888b3e577d122f5493b418c6b7b2ed28117c0a.tar.bz2
Fixed a crash in cMenuEditChanItem::Set() when entering a channel number that doesn't exist
Diffstat (limited to 'menuitems.c')
-rw-r--r--menuitems.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/menuitems.c b/menuitems.c
index 63f75898..f7ec7761 100644
--- a/menuitems.c
+++ b/menuitems.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.c 2.15 2012/12/23 13:44:05 kls Exp $
+ * $Id: menuitems.c 2.16 2013/02/15 14:20:29 kls Exp $
*/
#include "menuitems.h"
@@ -759,7 +759,7 @@ void cMenuEditChanItem::Set(void)
snprintf(buf, sizeof(buf), "%d %s", *value, channel ? channel->Name() : "");
SetValue(buf);
if (channelID)
- *channelID = channel->GetChannelID().ToString();
+ *channelID = channel ? channel->GetChannelID().ToString() : "";
}
else if (noneString) {
SetValue(noneString);