mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
avoid possible segfault
This commit is contained in:
@@ -677,8 +677,11 @@ void *insertEventsfromXMLTV(void * data)
|
||||
}
|
||||
else if (::downloadUrl(url, tmp_name))
|
||||
{
|
||||
readEventsFromXMLTV(tmp_name, ev_count);
|
||||
remove(tmp_name.c_str());
|
||||
if (!access(tmp_name.c_str(), R_OK))
|
||||
{
|
||||
readEventsFromXMLTV(tmp_name, ev_count);
|
||||
remove(tmp_name.c_str());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user