avoid null pointer use

Origin commit data
------------------
Branch: ni/coolstream
Commit: e257b06f44
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2024-09-05 (Thu, 05 Sep 2024)


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

------------------
This commit was generated by Migit
This commit is contained in:
Jacek Jendrzej
2024-09-05 21:34:45 +02:00
committed by vanhofen
parent 6b173240a4
commit 363b223bee

View File

@@ -837,8 +837,10 @@ void writeEventsToFile(const char *epgdir)
}
(*e)->saveXML(eventfile);
}
if (eventfile != NULL) {
write_epgxml_footer(eventfile);
fclose(eventfile);
}
_done:
unlockEvents();
write_indexxml_footer(indexfile);