mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
avoid possible segfault
This commit is contained in:
@@ -676,10 +676,13 @@ void *insertEventsfromXMLTV(void * data)
|
|||||||
readEventsFromXMLTV(url, ev_count);
|
readEventsFromXMLTV(url, ev_count);
|
||||||
}
|
}
|
||||||
else if (::downloadUrl(url, tmp_name))
|
else if (::downloadUrl(url, tmp_name))
|
||||||
|
{
|
||||||
|
if (!access(tmp_name.c_str(), R_OK))
|
||||||
{
|
{
|
||||||
readEventsFromXMLTV(tmp_name, ev_count);
|
readEventsFromXMLTV(tmp_name, ev_count);
|
||||||
remove(tmp_name.c_str());
|
remove(tmp_name.c_str());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
reader_ready = true;
|
reader_ready = true;
|
||||||
|
Reference in New Issue
Block a user