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:
@@ -675,10 +675,13 @@ void *insertEventsfromXMLTV(void * data)
|
||||
readEventsFromXMLTV(url, ev_count);
|
||||
}
|
||||
else if (::downloadUrl(url, tmp_name))
|
||||
{
|
||||
if (!access(tmp_name.c_str(), R_OK))
|
||||
{
|
||||
readEventsFromXMLTV(tmp_name, ev_count);
|
||||
remove(tmp_name.c_str());
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
reader_ready = true;
|
||||
|
Reference in New Issue
Block a user