avoid possible segfault

This commit is contained in:
TangoCash
2021-09-14 16:38:57 +02:00
committed by Thilo Graf
parent a892d20aac
commit f8d3c34307

View File

@@ -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
{