]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsactl: load_state() - initialize config variable for the open_failed case
authorJaroslav Kysela <perex@perex.cz>
Mon, 7 Jun 2021 15:21:56 +0000 (17:21 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 7 Jun 2021 15:21:58 +0000 (17:21 +0200)
Fixes: https://github.com/alsa-project/alsa-utils/issues/93
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/state.c

index 9c75688ac2a5132eafc752f0cbc87b00ab616916..439e1f8e07ddac0a6ccd437da769615502bbe8d4 100644 (file)
@@ -1642,6 +1642,7 @@ int load_state(const char *cfgdir, const char *file,
        snd_config_t *config;
        const char *cardname1;
 
+       config = NULL;
        err = load_configuration(file, &config, &open_failed);
        if (err < 0 && !open_failed)
                return err;