control - fixed crash when dynamic library is not present

See bug#1544.
This commit is contained in:
Jaroslav Kysela 2005-11-14 10:18:22 +00:00
parent 64e9372874
commit 5d3fa7b8a1

View file

@ -781,7 +781,7 @@ static int snd_ctl_open_conf(snd_ctl_t **ctlp, const char *name,
if (!h) { if (!h) {
SNDERR("Cannot open shared library %s", lib); SNDERR("Cannot open shared library %s", lib);
err = -ENOENT; err = -ENOENT;
} if (!open_func) { } else if (!open_func) {
SNDERR("symbol %s is not defined inside %s", open_name, lib); SNDERR("symbol %s is not defined inside %s", open_name, lib);
snd_dlclose(h); snd_dlclose(h);
err = -ENXIO; err = -ENXIO;