From 48e4fa3c8bf91bb7506059ced8ff333126a0c492 Mon Sep 17 00:00:00 2001 From: louis Date: Sat, 14 Sep 2013 13:04:41 +0200 Subject: fixed a segfault in displaychannel --- displaychannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/displaychannel.c b/displaychannel.c index 1af5868..345e6d9 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -567,7 +567,7 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) { cImageLoader imgLoader; if (imgLoader.LoadLogo(*ChannelName)) { pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage()); - } else if (imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()))) { + } else if (Channel && imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()))) { pixmapLogo->DrawImage(cPoint(config.logoBorder, (height-config.logoHeight)/2), imgLoader.GetImage()); } } -- cgit v1.2.3