summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_imf/ecore_imf_module.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_imf/ecore_imf_module.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_imf/ecore_imf_module.c b/legacy/ecore/src/lib/ecore_imf/ecore_imf_module.c
index 7b7bc2e400..d6b0be120f 100644
--- a/legacy/ecore/src/lib/ecore_imf/ecore_imf_module.c
+++ b/legacy/ecore/src/lib/ecore_imf/ecore_imf_module.c
@@ -157,13 +157,12 @@ _ecore_imf_module_load_all(void)
157 const Ecore_IMF_Context_Info *info = NULL; 157 const Ecore_IMF_Context_Info *info = NULL;
158 int (*imf_module_init)(const Ecore_IMF_Context_Info **info); 158 int (*imf_module_init)(const Ecore_IMF_Context_Info **info);
159 Ecore_IMF_Context *(*imf_module_create)(void); 159 Ecore_IMF_Context *(*imf_module_create)(void);
160 Ecore_IMF_Module *module;
161 160
162 avail = ecore_plugin_available_get(ecore_imf_modules_path); 161 avail = ecore_plugin_available_get(ecore_imf_modules_path);
163 if (!avail) return; 162 if (!avail) return;
164 163
165 ecore_list_first_goto(avail); 164 ecore_list_first_goto(avail);
166 while (filename = ecore_list_next(avail)) 165 while ((filename = ecore_list_next(avail)))
167 { 166 {
168 plugin = ecore_plugin_load(ecore_imf_modules_path, filename, NULL); 167 plugin = ecore_plugin_load(ecore_imf_modules_path, filename, NULL);
169 if (!plugin) 168 if (!plugin)
@@ -187,7 +186,7 @@ _ecore_imf_module_load_all(void)
187 { 186 {
188 fprintf(stderr, "** ecore_imf: Error loading input method plugin %s! " 187 fprintf(stderr, "** ecore_imf: Error loading input method plugin %s! "
189 "Plugin with id='%s' already exists!", 188 "Plugin with id='%s' already exists!",
190 info->id); 189 filename, info->id);
191 ecore_plugin_unload(plugin); 190 ecore_plugin_unload(plugin);
192 continue; 191 continue;
193 } 192 }