dvr: coverity - fix dvr_entry_class_channel_name_set()
This commit is contained in:
parent
a1e10f7c5d
commit
fd0282fd83
1 changed files with 1 additions and 1 deletions
|
@ -1263,7 +1263,7 @@ dvr_entry_class_channel_name_set(void *o, const void *v)
|
|||
return dvr_entry_class_channel_set(o, idnode_uuid_as_str(&ch->ch_id));
|
||||
} else {
|
||||
free(de->de_channel_name);
|
||||
de->de_channel_name = strdup(v);
|
||||
de->de_channel_name = v ? strdup(v) : NULL;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue