summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2009-08-22 00:11:50 +0200
committerThomas Günther <tom@toms-cafe.de>2009-08-22 00:11:50 +0200
commit97c95bcb70b01c68ddef7584efc57c39859ac05b (patch)
treef6a8679d0a654540cae0e68194a612cc0144a120 /display.c
parent4e86546f9bd946da0440e1e788b7260e37520ba4 (diff)
downloadvdr-plugin-text2skin-97c95bcb70b01c68ddef7584efc57c39859ac05b.tar.gz
vdr-plugin-text2skin-97c95bcb70b01c68ddef7584efc57c39859ac05b.tar.bz2
Fixed segmentation fault with token ChannelSource (closes #159 - thanks to a.g.prosat at tochka.ru for reporting this)
Diffstat (limited to 'display.c')
-rw-r--r--display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/display.c b/display.c
index c8fa7d3..c768db4 100644
--- a/display.c
+++ b/display.c
@@ -140,7 +140,7 @@ cxType cText2SkinDisplayChannel::GetTokenData(const txToken &Token)
: (cxType)false;
case tChannelSource:
- return mChannel != NULL
+ return mChannel != NULL && Sources.Get(mChannel->Source()) != NULL
? (cxType)Sources.Get(mChannel->Source())->Description()
: (cxType)false;