From: Jaroslav Kysela Date: Mon, 7 Jun 2021 15:21:56 +0000 (+0200) Subject: alsactl: load_state() - initialize config variable for the open_failed case X-Git-Tag: v1.2.5.1~6 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=f138117a457944ca73776bd752693d64ec207e55;p=alsa-utils.git 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 --- diff --git a/alsactl/state.c b/alsactl/state.c index 9c75688..439e1f8 100644 --- a/alsactl/state.c +++ b/alsactl/state.c @@ -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;