Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
config: coverity - missing NULL check
  • Loading branch information
perexg committed Oct 3, 2014
1 parent 52c8122 commit aff1463
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/config.c
Expand Up @@ -598,7 +598,7 @@ config_migrate_v6 ( void )
htsmsg_t *xc, *ch;
htsmsg_t *xchs = hts_settings_load("xmltv/channels");
htsmsg_t *chs = hts_settings_load_r(1, "channel");
if (xchs) {
if (chs) {
HTSMSG_FOREACH(f, chs) {
if ((ch = htsmsg_get_map_by_field(f))) {
if ((str = htsmsg_get_str(ch, "xmltv-channel"))) {
Expand All @@ -608,6 +608,8 @@ config_migrate_v6 ( void )
}
}
}
}
if (xchs) {
HTSMSG_FOREACH(f, xchs) {
if ((xc = htsmsg_get_map_by_field(f))) {
hts_settings_save(xc, "epggrab/xmltv/channels/%s", f->hmf_name);
Expand Down

0 comments on commit aff1463

Please sign in to comment.