Fix the loadable module name checking.

This commit is contained in:
Tambet Ingo
2008-09-16 12:42:14 +03:00
parent f1acf5aaec
commit e0c720e19c

View File

@@ -114,7 +114,7 @@ load_plugins (MMManager *manager)
char *path; char *path;
MMPlugin *plugin; MMPlugin *plugin;
if (!strstr (fname, G_MODULE_SUFFIX)) if (!g_str_has_suffix (fname, G_MODULE_SUFFIX))
continue; continue;
path = g_module_build_path (PLUGINDIR, fname); path = g_module_build_path (PLUGINDIR, fname);