mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
conf: Fix a memory access violation resulting from improper error propogation
Fixes an issue where a variable is used undeclared, which can cause seg faults on some systems if the configuration file is not formatted properly. Signed-off-by: Allan Wirth <allan@allanwirth.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
f49b2dc522
commit
7f2b2c8c16
1 changed files with 1 additions and 1 deletions
|
|
@ -3530,7 +3530,7 @@ int snd_config_hook_load(snd_config_t *root, snd_config_t *config, snd_config_t
|
|||
if (err < 0)
|
||||
goto _err;
|
||||
}
|
||||
} else if (config_file_open(root, fi[idx].name) < 0)
|
||||
} else if ((err = config_file_open(root, fi[idx].name)) < 0)
|
||||
goto _err;
|
||||
}
|
||||
*dst = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue