* If a user changed the XMLTV source for a channel to 'None', tvheadend

would crash. This is now fixed.
This commit is contained in:
Andreas Öman 2009-08-30 19:56:29 +00:00
parent eb082a82be
commit 55059017fa
2 changed files with 5 additions and 1 deletions

3
debian/changelog vendored
View file

@ -7,6 +7,9 @@ hts-tvheadend (2.6) hts; urgency=low
* Add support for sattelite beams with circular polarisation
* If a user changed the XMLTV source for a channel to 'None', tvheadend
would crash. This is now fixed.
hts-tvheadend (2.5) hts; urgency=low
* If a previosly detected DVB adapter was not present during startup,

View file

@ -472,7 +472,8 @@ channel_set_xmltv_source(channel_t *ch, xmltv_channel_t *xc)
}
ch->ch_xc = xc;
tvh_str_update(&ch->ch_icon, xc->xc_icon);
if(xc != NULL)
tvh_str_update(&ch->ch_icon, xc->xc_icon);
channel_save(ch);
}