dlsym: fix the snd_dlopen(), incorrect variable use

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2020-06-08 13:41:58 +02:00
parent 6b6d91cdf3
commit bcc2779c4a

View 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 */