fix possible segfault if chanellist is empty

This commit is contained in:
Jacek Jendrzej
2015-08-13 15:27:25 +02:00
parent fceeab4027
commit 5bfbae4ca9

View File

@@ -1820,6 +1820,9 @@ void CChannelList::paintButtonBar(bool is_current)
void CChannelList::paintItem(int pos, const bool firstpaint)
{
if( (*chanlist).empty() ){
return;
}
int ypos = y+ theight + pos*fheight;
fb_pixel_t color;
fb_pixel_t bgcolor;