mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
fix possible segfault if chanellist is empty
This commit is contained in:
@@ -1820,6 +1820,9 @@ void CChannelList::paintButtonBar(bool is_current)
|
|||||||
|
|
||||||
void CChannelList::paintItem(int pos, const bool firstpaint)
|
void CChannelList::paintItem(int pos, const bool firstpaint)
|
||||||
{
|
{
|
||||||
|
if( (*chanlist).empty() ){
|
||||||
|
return;
|
||||||
|
}
|
||||||
int ypos = y+ theight + pos*fheight;
|
int ypos = y+ theight + pos*fheight;
|
||||||
fb_pixel_t color;
|
fb_pixel_t color;
|
||||||
fb_pixel_t bgcolor;
|
fb_pixel_t bgcolor;
|
||||||
|
Reference in New Issue
Block a user