summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/data/data_recent.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/data/data_recent.c b/src/data/data_recent.c
index 4c2433c..f16175e 100644
--- a/src/data/data_recent.c
+++ b/src/data/data_recent.c
@@ -178,14 +178,11 @@ static void _channel_list_foreach(gpointer data, gpointer user_data)
}
if (channel.minor > 0)
- snprintf(buf, sizeof(buf), "%ld-%ld %s",
- channel.major, channel.minor,
- channel.program_name ?
- channel.program_name : "");
+ snprintf(buf, sizeof(buf), "%ld-%ld %s", channel.major,
+ channel.minor, channel.program_name);
else
snprintf(buf, sizeof(buf), "%ld %s", channel.major,
- channel.program_name ?
- channel.program_name : "");
+ channel.program_name);
_get_program(atoi(rdata->id), &program);