mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-23 00:16:31 +01:00
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:
parent
c58f981e15
commit
f138117a45
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue