mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 01:11:12 +02:00
eventlist.cpp:-fix possible segfault
This commit is contained in:
@@ -1243,11 +1243,17 @@ int CEventFinderMenu::showMenu(void)
|
|||||||
}
|
}
|
||||||
else if(*m_search_list == CNeutrinoEventList::SEARCH_LIST_BOUQUET)
|
else if(*m_search_list == CNeutrinoEventList::SEARCH_LIST_BOUQUET)
|
||||||
{
|
{
|
||||||
|
if(bouquetList->Bouquets.size()<*m_search_bouquet_id ){
|
||||||
|
*m_search_bouquet_id = bouquetList->getActiveBouquetNumber();;
|
||||||
|
}
|
||||||
|
if(!bouquetList->Bouquets.empty())
|
||||||
m_search_channelname = bouquetList->Bouquets[*m_search_bouquet_id]->channelList->getName();
|
m_search_channelname = bouquetList->Bouquets[*m_search_bouquet_id]->channelList->getName();
|
||||||
|
else
|
||||||
|
m_search_channelname ="";
|
||||||
}
|
}
|
||||||
else if(*m_search_list == CNeutrinoEventList::SEARCH_LIST_ALL)
|
else if(*m_search_list == CNeutrinoEventList::SEARCH_LIST_ALL)
|
||||||
{
|
{
|
||||||
m_search_channelname =="";
|
m_search_channelname ="";
|
||||||
}
|
}
|
||||||
|
|
||||||
CStringInputSMS stringInput(LOCALE_EVENTFINDER_KEYWORD,m_search_keyword, 20, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789 -_/()<>=+.,:!?\\'");
|
CStringInputSMS stringInput(LOCALE_EVENTFINDER_KEYWORD,m_search_keyword, 20, NONEXISTANT_LOCALE, NONEXISTANT_LOCALE, "abcdefghijklmnopqrstuvwxyz0123456789 -_/()<>=+.,:!?\\'");
|
||||||
|
Reference in New Issue
Block a user