Skip to content

Commit 72bec87

Browse files
radaretrufae
authored andcommitted
Use dir.plugins config var instead of hardcoded R2_LIBDIR in libs.c
1 parent d236be6 commit 72bec87

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libr/core/libs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,8 @@ static void load_scripts(RCore *core) {
158158
load_scripts_at (core, homeplugindir);
159159
free (homeplugindir);
160160

161-
char *sysplugindir = r_str_newf ("%s/radare2/%s", R2_LIBDIR, R2_VERSION);
161+
const char *sysplugindir = r_config_get (core->config, "dir.plugins");
162162
load_scripts_at (core, sysplugindir);
163-
free (sysplugindir);
164163
}
165164

166165
R_API bool r_core_loadlibs(RCore *core, int where, const char *path) {

0 commit comments

Comments
 (0)