avoid possible segfault

Origin commit data
------------------
Commit: 7aca39d8e9
Author: TangoCash <eric@loxat.de>
Date: 2021-09-14 (Tue, 14 Sep 2021)
This commit is contained in:
TangoCash
2021-09-14 16:38:57 +02:00
committed by vanhofen
parent b933473ae0
commit c3beaae9ed

View File

@@ -676,8 +676,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
{