external/alsa-utils
Revisión | f138117a457944ca73776bd752693d64ec207e55 (tree) |
---|---|
Tiempo | 2021-06-08 00:21:58 |
Autor | Jaroslav Kysela <perex@pere...> |
Commiter | Jaroslav Kysela |
alsactl: load_state() - initialize config variable for the open_failed case
Fixes: https://github.com/alsa-project/alsa-utils/issues/93
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
@@ -1642,6 +1642,7 @@ int load_state(const char *cfgdir, const char *file, | ||
1642 | 1642 | snd_config_t *config; |
1643 | 1643 | const char *cardname1; |
1644 | 1644 | |
1645 | + config = NULL; | |
1645 | 1646 | err = load_configuration(file, &config, &open_failed); |
1646 | 1647 | if (err < 0 && !open_failed) |
1647 | 1648 | return err; |