mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-26 07:57:57 -04:00
Fix an infinite recursive call
The function snd_ctl_remap_async will call itself infinitely. Looks like
a typo. Clang complains:
alsa-lib/src/control/control_remap.c:324:1: error: all paths through this function will call itself [-Werror,-Winfinite-recursion]
{
^
1 error generated.
Fixes: a64391a42 ("control: remap plugin - initial version")
Signed-off-by: Chih-Wei Huang <cwhuang@linux.org.tw>
This commit is contained in:
parent
123bf1dabb
commit
2d113cc4c2
1 changed files with 1 additions and 1 deletions
|
|
@ -323,7 +323,7 @@ static int snd_ctl_remap_nonblock(snd_ctl_t *ctl, int nonblock)
|
|||
static int snd_ctl_remap_async(snd_ctl_t *ctl, int sig, pid_t pid)
|
||||
{
|
||||
snd_ctl_remap_t *priv = ctl->private_data;
|
||||
return snd_ctl_remap_async(priv->child, sig, pid);
|
||||
return snd_ctl_async(priv->child, sig, pid);
|
||||
}
|
||||
|
||||
static int snd_ctl_remap_subscribe_events(snd_ctl_t *ctl, int subscribe)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue