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>
This commit is contained in:
Jaroslav Kysela 2021-06-07 17:21:56 +02:00
parent c58f981e15
commit f138117a45

View file

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