summaryrefslogtreecommitdiff
path: root/src/plugins/plugin-api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/plugin-api.c')
-rw-r--r--src/plugins/plugin-api.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/plugin-api.c b/src/plugins/plugin-api.c
index 7ac39977e..95de05b7c 100644
--- a/src/plugins/plugin-api.c
+++ b/src/plugins/plugin-api.c
@@ -314,7 +314,8 @@ plugin_api_info_get_internal (void *data, const char *info_name,
{
if (!weechat_dir_absolute_path[0])
{
- realpath (weechat_home, weechat_dir_absolute_path);
+ if (!realpath (weechat_home, weechat_dir_absolute_path))
+ return NULL;
}
return (weechat_dir_absolute_path[0]) ?
weechat_dir_absolute_path : weechat_home;