mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Fix missing error code in snd_ctl_hw_open()
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
0a4b1ee746
commit
e1c876a2f0
1 changed files with 1 additions and 0 deletions
|
|
@ -414,6 +414,7 @@ int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode)
|
|||
if (err < 0) {
|
||||
close(fd);
|
||||
free(hw);
|
||||
return err;
|
||||
}
|
||||
ctl->ops = &snd_ctl_hw_ops;
|
||||
ctl->private_data = hw;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue