mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-02 09:01:48 -05:00
configuration: avoid endless loop when a key refers to itself
remove one warning from tlv_read routine in control.c
This commit is contained in:
parent
436b003173
commit
1dc96732c2
2 changed files with 20 additions and 3 deletions
|
|
@ -469,7 +469,7 @@ int snd_ctl_elem_tlv_read(snd_ctl_t *ctl, const snd_ctl_elem_id_t *id,
|
|||
tlv[0] = -1;
|
||||
tlv[1] = 0;
|
||||
err = snd_ctl_tlv_do(ctl, 0, id, tlv, tlv_size);
|
||||
if (err >= 0 && tlv[0] == -1)
|
||||
if (err >= 0 && tlv[0] == (unsigned int)-1)
|
||||
err = -ENXIO;
|
||||
return err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue