fix: plugin path bug
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good

This commit is contained in:
Dany LE 2022-10-04 14:20:05 +02:00 committed by GitHub
parent a8201947ef
commit cab479a0fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -72,7 +72,7 @@ void * plugin_from_file(char* name)
{ {
void *lib_handle; void *lib_handle;
char* error; char* error;
char* path = __s("%s%s%s",config()->plugins_dir,name,config()->plugins_ext); char* path = __s("%s/%s%s",config()->plugins_dir,name,config()->plugins_ext);
void (*fn)(const char*); void (*fn)(const char*);
lib_handle = dlopen(path, RTLD_LAZY); lib_handle = dlopen(path, RTLD_LAZY);
if (!lib_handle) if (!lib_handle)