mirror of
https://github.com/lxsang/ant-http
synced 2024-11-17 17:08:20 +01:00
fix: plugin path bug
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
All checks were successful
gitea-sync/ant-http/pipeline/head This commit looks good
This commit is contained in:
parent
a8201947ef
commit
cab479a0fb
@ -72,7 +72,7 @@ void * plugin_from_file(char* name)
|
||||
{
|
||||
void *lib_handle;
|
||||
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*);
|
||||
lib_handle = dlopen(path, RTLD_LAZY);
|
||||
if (!lib_handle)
|
||||
|
Loading…
Reference in New Issue
Block a user