mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-06 13:18:27 +02:00
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:
@@ -676,8 +676,11 @@ void *insertEventsfromXMLTV(void * data)
|
|||||||
}
|
}
|
||||||
else if (::downloadUrl(url, tmp_name))
|
else if (::downloadUrl(url, tmp_name))
|
||||||
{
|
{
|
||||||
readEventsFromXMLTV(tmp_name, ev_count);
|
if (!access(tmp_name.c_str(), R_OK))
|
||||||
remove(tmp_name.c_str());
|
{
|
||||||
|
readEventsFromXMLTV(tmp_name, ev_count);
|
||||||
|
remove(tmp_name.c_str());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user