mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-02-21 01:40:09 -05:00
ucm: check error value in parse_lookup_query()
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
26ab7fc3e4
commit
64a6d4d1e8
1 changed files with 5 additions and 1 deletions
|
|
@ -224,7 +224,11 @@ static snd_config_t *parse_lookup_query(const char *query)
|
||||||
uc_error("unable to create memory input buffer");
|
uc_error("unable to create memory input buffer");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
snd_config_top(&config);
|
err = snd_config_top(&config);
|
||||||
|
if (err < 0) {
|
||||||
|
snd_input_close(input);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
err = snd_config_load(config, input);
|
err = snd_config_load(config, input);
|
||||||
snd_input_close(input);
|
snd_input_close(input);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue