mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
src/gui/channellist.cpp: fix possible segfault
Origin commit data
------------------
Branch: ni/coolstream
Commit: 2e5b54c509
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2013-01-31 (Thu, 31 Jan 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -2126,12 +2126,15 @@ void CChannelList::paint_events(int index)
|
|||||||
do
|
do
|
||||||
{
|
{
|
||||||
//printf("%d seconds in the past - deleted %s\n", dif, e->description.c_str());
|
//printf("%d seconds in the past - deleted %s\n", dif, e->description.c_str());
|
||||||
if(!evtlist.empty())
|
e = evtlist.erase( e );
|
||||||
e = evtlist.erase(e);
|
if (e == evtlist.end())
|
||||||
|
break;
|
||||||
dif = azeit - e->startTime;
|
dif = azeit - e->startTime;
|
||||||
}
|
}
|
||||||
while (!evtlist.empty() && dif > 0 );
|
while ( dif > 0 );
|
||||||
}
|
}
|
||||||
|
if (e == evtlist.end())
|
||||||
|
break;
|
||||||
//Display the remaining events
|
//Display the remaining events
|
||||||
struct tm *tmStartZeit = localtime(&e->startTime);
|
struct tm *tmStartZeit = localtime(&e->startTime);
|
||||||
strftime(text1, sizeof(text1), "%H:%M", tmStartZeit );
|
strftime(text1, sizeof(text1), "%H:%M", tmStartZeit );
|
||||||
|
Reference in New Issue
Block a user