mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-03 09:01:52 -05:00
control - fixed crash when dynamic library is not present
See bug#1544.
This commit is contained in:
parent
64e9372874
commit
5d3fa7b8a1
1 changed files with 1 additions and 1 deletions
|
|
@ -781,7 +781,7 @@ static int snd_ctl_open_conf(snd_ctl_t **ctlp, const char *name,
|
|||
if (!h) {
|
||||
SNDERR("Cannot open shared library %s", lib);
|
||||
err = -ENOENT;
|
||||
} if (!open_func) {
|
||||
} else if (!open_func) {
|
||||
SNDERR("symbol %s is not defined inside %s", open_name, lib);
|
||||
snd_dlclose(h);
|
||||
err = -ENXIO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue