]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: fix the compiler warning (uninitialized variable res)
authorJaroslav Kysela <perex@perex.cz>
Sun, 7 Mar 2021 19:00:15 +0000 (20:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 7 Mar 2021 19:00:24 +0000 (20:00 +0100)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/alsactl.c

index 1d2ff3ed0a200d0207487b50bb8f00e46a5b6174..3a6f79d29349a99575df154b13674ca49f6d9a71 100644 (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;
                }
        }