From 5d3fa7b8a140cb64b17662c39fab6e47598d781c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 14 Nov 2005 10:18:22 +0000 Subject: [PATCH] control - fixed crash when dynamic library is not present See bug#1544. --- src/control/control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control/control.c b/src/control/control.c index bdfb14a0..cb4d92be 100644 --- a/src/control/control.c +++ b/src/control/control.c @@ -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; -- 2.47.1