OSDN Git Service

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 2c7dc31..5d67214 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 */