epgdb: check return value in epg_save()
This commit is contained in:
parent
f7a328ff3c
commit
2e858f339c
1 changed files with 2 additions and 0 deletions
|
@ -296,6 +296,8 @@ void epg_save ( void )
|
|||
gtimer_arm(&epggrab_save_timer, epg_save_callback, NULL, epggrab_epgdb_periodicsave);
|
||||
|
||||
fd = hts_settings_open_file(1, "epgdb.v%d", EPG_DB_VERSION);
|
||||
if (fd < 0)
|
||||
return;
|
||||
|
||||
memset(&stats, 0, sizeof(stats));
|
||||
if ( _epg_write_sect(fd, "brands") ) return;
|
||||
|
|
Loading…
Add table
Reference in a new issue