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:
b66d69b
)
ucm: fix the error path in parse_toplevel_path()
author
Jaroslav Kysela
<perex@perex.cz>
Mon, 8 Jun 2020 07:09:22 +0000
(09:09 +0200)
committer
Jaroslav Kysela
<perex@perex.cz>
Mon, 8 Jun 2020 07:09:39 +0000
(09:09 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/ucm/parser.c
patch
|
blob
|
history
diff --git
a/src/ucm/parser.c
b/src/ucm/parser.c
index
e436597
..
1d0874d
100644
(file)
--- a/
src/ucm/parser.c
+++ b/
src/ucm/parser.c
@@
-2048,13
+2048,11
@@
static int parse_toplevel_path(snd_use_case_mgr_t *uc_mgr,
if (dir == NULL) {
uc_error("Directory is not defined in %s!", filename);
- free(file);
- continue;
+ goto __next;
}
if (file == NULL) {
uc_error("File is not defined in %s!", filename);
- free(dir);
- continue;
+ goto __next;
}
ucm_filename(fn, sizeof(fn), version, dir, file);
@@
-2072,6
+2070,7
@@
static int parse_toplevel_path(snd_use_case_mgr_t *uc_mgr,
goto __ok;
}
+__next:
free(file);
free(dir);
dir = NULL;