ucm: fix if_eval_path() - access NULL pointer

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-06-02 19:53:24 +02:00
parent 9b71d53bde
commit 7764e3e621

View file

@ -272,7 +272,7 @@ static int if_eval_control_exists(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval
static int if_eval_path(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
{
const char *path, *mode = NULL;
const char *path, *mode = "";
int err, amode = F_OK;
if (uc_mgr->conf_format < 4) {