Check if plugin file ends with .so

This commit is contained in:
Moritz Lipp 2014-09-05 09:21:07 +02:00
parent 1608249709
commit edae973baa

View file

@ -108,6 +108,12 @@ zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager)
continue; continue;
} }
if (g_str_has_suffix(path, ".so") == FALSE) {
girara_debug("%s is not a plugin file. Skipping.", path);
g_free(path);
continue;
}
zathura_plugin_t* plugin = NULL; zathura_plugin_t* plugin = NULL;
/* load plugin */ /* load plugin */