]> git.alsa-project.org Git - alsa-lib.git/commitdiff
control - fixed crash when dynamic library is not present
authorJaroslav Kysela <perex@perex.cz>
Mon, 14 Nov 2005 10:18:22 +0000 (10:18 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 14 Nov 2005 10:18:22 +0000 (10:18 +0000)
See bug#1544.

src/control/control.c

index bdfb14a010a17e0f33e38844075ebfa0acb43281..cb4d92be889838242ac447f194d015cc0a1fdad1 100644 (file)
@@ -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;