From 2d113cc4c2eabd3b2eb0d5c90d3c6c9a858bd688 Mon Sep 17 00:00:00 2001 From: Chih-Wei Huang Date: Mon, 14 Jun 2021 13:08:08 +0800 Subject: [PATCH] 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 --- src/control/control_remap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/control_remap.c b/src/control/control_remap.c index 17c6558a..a85c1725 100644 --- a/src/control/control_remap.c +++ b/src/control/control_remap.c @@ -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)