mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
ucm: conditions - fix the wrong string/substring match
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
2cb44791c3
commit
6eb4f8a724
1 changed files with 2 additions and 2 deletions
|
|
@ -73,7 +73,7 @@ static int if_eval_string(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
|
|||
free(s1);
|
||||
return err;
|
||||
}
|
||||
err = strcasecmp(string1, string2) == 0;
|
||||
err = strcasecmp(s1, s2) == 0;
|
||||
free(s2);
|
||||
free(s1);
|
||||
return err;
|
||||
|
|
@ -108,7 +108,7 @@ static int if_eval_string(snd_use_case_mgr_t *uc_mgr, snd_config_t *eval)
|
|||
free(s1);
|
||||
return err;
|
||||
}
|
||||
err = strstr(string1, string2) == 0;
|
||||
err = strstr(s1, s2) != NULL;
|
||||
free(s2);
|
||||
free(s1);
|
||||
return err;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue