alsactl: fix the compiler warning (uninitialized variable res)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2021-03-07 20:00:15 +01:00
parent c1474594dc
commit b137145a92

View file

@ -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;
}
}