]> git.alsa-project.org Git - alsa-lib.git/commitdiff
dlsym: fix the snd_dlopen(), incorrect variable use
authorJaroslav Kysela <perex@perex.cz>
Mon, 8 Jun 2020 11:41:58 +0000 (13:41 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 8 Jun 2020 11:41:58 +0000 (13:41 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/dlmisc.c

index 2c7dc319eb6a5c207d8fa323b6b5d10598c7294e..5d672146ab53778d8eb4e4bc4fc9279d60766f88 100644 (file)
@@ -140,7 +140,7 @@ void *snd_dlopen(const char *name, int mode, char *errbuf, size_t errbuflen)
 
        if (name && name[0] != '/') {
                if (snd_dlpath(path, sizeof(path), name) == 0) {
-                       filename = name;
+                       filename = path;
                        handle = dlopen(filename, mode);
                        if (!handle) {
                                /* if the filename exists and cannot be opened */