Skip to content

Commit

Permalink
Fix dir.magic
Browse files Browse the repository at this point in the history
  • Loading branch information
radare committed Jan 19, 2018
1 parent 9f258eb commit ae0fba0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libr/core/cconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -2473,7 +2473,11 @@ R_API int r_core_config_init(RCore *core) {

/* dir */
SETCB ("dir.dbgsnap", ".", &cb_dbgsnap, "Path to session dump files");
SETPREF ("dir.magic", R_MAGIC_PATH, "Path to r_magic files");
{
char *path = r_str_newf ("%s/" R_MAGIC_PATH, r_config_get (core->config, "dir.prefix"));
SETPREF ("dir.magic", path, "Path to r_magic files");
free (path);
}
#if __WINDOWS__
SETPREF ("dir.plugins", "plugins", "Path to plugin files to be loaded at startup");
#else
Expand Down

0 comments on commit ae0fba0

Please sign in to comment.