Don't add null-strings to config

This commit is contained in:
Andreas Öman 2008-04-27 13:47:57 +00:00
parent 3c9bd1473a
commit 35d84f0949

View file

@ -424,7 +424,8 @@ channel_settings_write(th_channel_t *ch)
fprintf(fp, "name = %s\n", ch->ch_name);
fprintf(fp, "channel-group = %s\n", ch->ch_group->tcg_name);
fprintf(fp, "icon = %s\n", ch->ch_icon);
if(ch->ch_icon != NULL)
fprintf(fp, "icon = %s\n", ch->ch_icon);
fprintf(fp, "commercial-detect = %s\n",
val2str(ch->ch_commercial_detection, commercial_detect_tab) ?: "?");
fclose(fp);