summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-06-08 13:41:58 +0200
committerJaroslav Kysela <perex@perex.cz>2020-06-08 13:41:58 +0200
commitbcc2779c4a40a06cb26092268af2c71201e0e919 (patch)
treeeb561ec4e5239872b1a9a7db029e268052817c5d
parent6b6d91cdf30fe921b5d6447ced515e48eb6828b8 (diff)
downloadalsa-lib-bcc2779c4a40a06cb26092268af2c71201e0e919.tar.gz
dlsym: fix the snd_dlopen(), incorrect variable use
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--src/dlmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dlmisc.c b/src/dlmisc.c
index 2c7dc319..5d672146 100644
--- a/src/dlmisc.c
+++ b/src/dlmisc.c
@@ -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 */