config: fix another coverity NULL string issue in config_modify_dvr_log()

This commit is contained in:
Jaroslav Kysela 2014-10-03 23:07:37 +02:00
parent 49396483c5
commit 9734af1092

View file

@ -775,7 +775,7 @@ config_modify_dvr_log( htsmsg_t *c, uint32_t id, const char *uuid, const void *a
htsmsg_delete_field(c, "index");
if (chname == NULL || (chuuid != NULL && uuid_init_bin(&uuid0, chuuid))) {
chname = strdup(chuuid);
chname = strdup(chuuid ?: "");
htsmsg_delete_field(c, "channelname");
htsmsg_delete_field(c, "channel");
htsmsg_add_str(c, "channelname", chname);