mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
pictureviewer: fix segfault if no channelid is present
Origin commit data
------------------
Commit: 3a49fa37b9
Author: TangoCash <eric@loxat.de>
Date: 2018-09-20 (Thu, 20 Sep 2018)
This commit is contained in:
@@ -543,8 +543,9 @@ bool CPictureViewer::GetLogoName(const uint64_t& channel_id, const std::string&
|
|||||||
e2filename2[0] = '\0';
|
e2filename2[0] = '\0';
|
||||||
|
|
||||||
CZapitChannel * cc = NULL;
|
CZapitChannel * cc = NULL;
|
||||||
if (CNeutrinoApp::getInstance()->channelList)
|
if (channel_id)
|
||||||
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel_id);
|
if (CNeutrinoApp::getInstance()->channelList)
|
||||||
|
cc = CNeutrinoApp::getInstance()->channelList->getChannel(channel_id);
|
||||||
|
|
||||||
if (cc)
|
if (cc)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user