Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epgdb: check return value in epg_save()
  • Loading branch information
perexg committed Oct 3, 2014
1 parent f7a328f commit 2e858f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/epgdb.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2e858f3

Please sign in to comment.