mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
ucm: split conf_file_name and conf_dir_name
With ucm2, the file name might differ from the directory name. Also, allocate those fields. Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
b34715004f
commit
fe6425af75
5 changed files with 37 additions and 17 deletions
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
static char *rval_conf_name(snd_use_case_mgr_t *uc_mgr)
|
||||
{
|
||||
if (uc_mgr->conf_file_name[0])
|
||||
if (uc_mgr->conf_file_name && uc_mgr->conf_file_name[0])
|
||||
return strdup(uc_mgr->conf_file_name);
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue