summaryrefslogtreecommitdiff
path: root/templatefile.c
diff options
context:
space:
mode:
Diffstat (limited to 'templatefile.c')
-rw-r--r--templatefile.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/templatefile.c b/templatefile.c
index 830548b..a2536f5 100644
--- a/templatefile.c
+++ b/templatefile.c
@@ -210,9 +210,10 @@ bool cTemplFile::Parse(const char *Name, const char *Value)
void cTemplFile::PrepareDefaultTemplates()
{
char channelnr[20] = "";
- LOCK_CHANNELS_READ;
- const cChannels *vdrchannels = Channels;
+ {
+ LOCK_CHANNELS_READ; // Channels used in CHNUMWIDTH
sprintf(channelnr, "%%chnr%%:%d|", CHNUMWIDTH);
+ }
bool text2skin = !(strcmp(Setup.OSDSkin, "soppalusikka") == 0 ||
strcmp(Setup.OSDSkin, "classic") == 0 ||