mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
avoid null pointer use
This commit is contained in:
@@ -835,8 +835,10 @@ void writeEventsToFile(const char *epgdir)
|
||||
}
|
||||
(*e)->saveXML(eventfile);
|
||||
}
|
||||
write_epgxml_footer(eventfile);
|
||||
fclose(eventfile);
|
||||
if (eventfile != NULL) {
|
||||
write_epgxml_footer(eventfile);
|
||||
fclose(eventfile);
|
||||
}
|
||||
_done:
|
||||
unlockEvents();
|
||||
write_indexxml_footer(indexfile);
|
||||
|
Reference in New Issue
Block a user