mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
always handle return value from snd_config_get_id() (coverity)
This commit is contained in:
parent
b0e4652881
commit
8a38461fac
2 changed files with 6 additions and 4 deletions
|
|
@ -653,8 +653,8 @@ static int parse_tuple_sets(snd_config_t *cfg,
|
|||
int err;
|
||||
|
||||
if (snd_config_get_type(cfg) != SND_CONFIG_TYPE_COMPOUND) {
|
||||
snd_config_get_id(cfg, &id);
|
||||
SNDERR("error: compound type expected for %s", id);
|
||||
if (snd_config_get_id(cfg, &id) >= 0)
|
||||
SNDERR("error: compound type expected for %s", id);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue