OSDN Git Service
(root)
/
android-x86
/
external-alsa-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
590df3a
)
ucm: fix regexec() REG_NOMATCH state handling for define regex
author
Jaroslav Kysela
<perex@perex.cz>
Wed, 12 May 2021 07:53:18 +0000
(09:53 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Wed, 12 May 2021 07:53:18 +0000
(09:53 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/ucm_regex.c
patch
|
blob
|
history
diff --git
a/src/ucm/ucm_regex.c
b/src/ucm/ucm_regex.c
index
be8f277
..
1471f07
100644
(file)
--- a/
src/ucm/ucm_regex.c
+++ b/
src/ucm/ucm_regex.c
@@
-166,6
+166,8
@@
int uc_mgr_define_regex(snd_use_case_mgr_t *uc_mgr, const char *name,
err = regexec(&re, s, ARRAY_SIZE(match), match, 0);
if (err < 0)
err = -errno;
+ else if (err == REG_NOMATCH)
+ err = 0;
else
err = set_variables(uc_mgr, s, ARRAY_SIZE(match), match, name);
free(s);