summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2011-08-20 09:25:48 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2011-08-20 09:25:48 +0200
commit12f60ee151ca1cecf37d768eb62eb7a13fe61641 (patch)
treeca3747a4730ba01148c8d50d0f5346bddec75a39
parent3a19051c76ef19706e227ab971184a0e77a23e3c (diff)
downloadvdr-12f60ee151ca1cecf37d768eb62eb7a13fe61641.tar.gz
vdr-12f60ee151ca1cecf37d768eb62eb7a13fe61641.tar.bz2
Now initializing Setup.InitialChannel to an empty string
-rw-r--r--HISTORY2
-rw-r--r--config.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 0ea32af1..0040b4b0 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6703,3 +6703,5 @@ Video Disk Recorder Revision History
- Fixed detecting frames for channels that split frames into several payloads
(reported by Derek Kelly).
+- Now initializing Setup.InitialChannel to an empty string to avoid problems in
+ case there is no setup.conf.
diff --git a/config.c b/config.c
index 6767b5c6..73bb00d6 100644
--- a/config.c
+++ b/config.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: config.c 2.14 2011/06/13 14:41:01 kls Exp $
+ * $Id: config.c 2.15 2011/08/20 09:12:05 kls Exp $
*/
#include "config.h"
@@ -395,7 +395,7 @@ cSetup::cSetup(void)
CurrentChannel = -1;
CurrentVolume = MAXVOLUME;
CurrentDolby = 0;
- // InitialChannel is initialized by constructor
+ InitialChannel = "";
InitialVolume = -1;
ChannelsWrap = 0;
EmergencyExit = 1;