summaryrefslogtreecommitdiff
path: root/src/core/wee-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/wee-util.c')
-rw-r--r--src/core/wee-util.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/core/wee-util.c b/src/core/wee-util.c
index 70f90094e..408998164 100644
--- a/src/core/wee-util.c
+++ b/src/core/wee-util.c
@@ -157,15 +157,17 @@ util_search_full_lib_name (char *filename, char *sys_directory)
return strdup (filename);
length = strlen (filename) + 16;
- if (cfg_plugins_extension && cfg_plugins_extension[0])
- length += strlen (cfg_plugins_extension);
+ if (CONFIG_STRING(config_plugins_extension)
+ && CONFIG_STRING(config_plugins_extension)[0])
+ length += strlen (CONFIG_STRING(config_plugins_extension));
name_with_ext = (char *)malloc (length);
if (!name_with_ext)
return strdup (filename);
strcpy (name_with_ext, filename);
if (!strchr (filename, '.')
- && cfg_plugins_extension && cfg_plugins_extension[0])
- strcat (name_with_ext, cfg_plugins_extension);
+ && CONFIG_STRING(config_plugins_extension)
+ && CONFIG_STRING(config_plugins_extension)[0])
+ strcat (name_with_ext, CONFIG_STRING(config_plugins_extension));
/* try WeeChat user's dir */
length = strlen (weechat_home) + strlen (name_with_ext) +