dvr: dvr_config_class_name_set() - NULL str - coverity
This commit is contained in:
parent
a64f9a5ad3
commit
cbeb3d1794
1 changed files with 1 additions and 1 deletions
|
@ -324,7 +324,7 @@ dvr_config_class_name_set(void *o, const void *v)
|
|||
if (dvr_config_is_valid(cfg) && (v == NULL || *(char *)v == '\0'))
|
||||
return 0;
|
||||
free(cfg->dvr_config_name);
|
||||
cfg->dvr_config_name = strdup(v);
|
||||
cfg->dvr_config_name = strdup(v ?: "");
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue