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