config: fix another coverity NULL string issue in config_modify_dvr_log()
This commit is contained in:
parent
49396483c5
commit
9734af1092
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue