From 35d84f0949188bbe007e994e161941166a4948c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 27 Apr 2008 13:47:57 +0000 Subject: [PATCH] Don't add null-strings to config --- channels.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channels.c b/channels.c index 83996220..ccdbf503 100644 --- a/channels.c +++ b/channels.c @@ -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);