summaryrefslogtreecommitdiff
path: root/src/enchant.c
diff options
context:
space:
mode:
authorJonathan Springer <springermac@gmail.com>2015-08-27 17:10:22 -0400
committerJonathan Springer <springermac@gmail.com>2015-08-27 17:10:22 -0400
commit85f3fdc0f85c1388d9871997908f897c44eb550c (patch)
treeb1f83b7bc698397c66c3301a66b083cc8f218e16 /src/enchant.c
parent575809d64084aa0067d1e7b9a2cf271d739718c4 (diff)
downloadenchant-85f3fdc0f85c1388d9871997908f897c44eb550c.tar.gz
Always try to use enchant_get_prefix_dir when finding modules
Diffstat (limited to 'src/enchant.c')
-rw-r--r--src/enchant.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/enchant.c b/src/enchant.c
index e1f3245..1068485 100644
--- a/src/enchant.c
+++ b/src/enchant.c
@@ -240,7 +240,7 @@ enchant_get_module_dirs (void)
#if defined(ENCHANT_GLOBAL_MODULE_DIR)
module_dirs = enchant_slist_append_unique_path (module_dirs, g_strdup (ENCHANT_GLOBAL_MODULE_DIR));
-#else
+#endif
/* Dynamically locate library and search for modules relative to it. */
prefix = enchant_get_prefix_dir();
if(prefix)
@@ -249,7 +249,6 @@ enchant_get_module_dirs (void)
g_free(prefix);
module_dirs = enchant_slist_append_unique_path (module_dirs, module_dir);
}
-#endif
return module_dirs;
}