avoid possible segfault

Origin commit data
------------------
Branch: ni/coolstream
Commit: 7aca39d8e9
Author: TangoCash <eric@loxat.de>
Date: 2021-09-14 (Tue, 14 Sep 2021)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2021-09-14 16:38:57 +02:00
committed by vanhofen
parent b6b421d2dc
commit de5c49e0bc

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
{