summaryrefslogtreecommitdiff
path: root/alsactl
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2021-03-07 20:00:15 +0100
committerJaroslav Kysela <perex@perex.cz>2021-03-07 20:00:24 +0100
commitb137145a92ae4ef03c37520a59177587c20751ff (patch)
tree7baf479a4f2626c7a1d11e5bb0a279810351cf1f /alsactl
parentc1474594dcb3fa741d00966630cb5770e4e504b0 (diff)
downloadalsa-utils-b137145a92ae4ef03c37520a59177587c20751ff.tar.gz
alsactl: fix the compiler warning (uninitialized variable res)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'alsactl')
-rw-r--r--alsactl/alsactl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/alsactl/alsactl.c b/alsactl/alsactl.c
index 1d2ff3e..3a6f79d 100644
--- a/alsactl/alsactl.c
+++ b/alsactl/alsactl.c
@@ -401,6 +401,7 @@ int main(int argc, char *argv[])
use_syslog = 1;
if (daemon(0, 0)) {
syslog(LOG_INFO, "alsactl " SND_UTIL_VERSION_STR " daemon cannot be started: %s", strerror(errno));
+ res = EXIT_FAILURE;
goto out;
}
}