From: Jaroslav Kysela Date: Mon, 8 Jun 2020 11:41:58 +0000 (+0200) Subject: dlsym: fix the snd_dlopen(), incorrect variable use X-Git-Tag: v1.2.3~1 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=bcc2779c4a40a06cb26092268af2c71201e0e919;p=alsa-lib.git dlsym: fix the snd_dlopen(), incorrect variable use Signed-off-by: Jaroslav Kysela --- 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 */