Commit edae973b authored by Moritz Lipp's avatar Moritz Lipp
Browse files

Check if plugin file ends with .so

parent 16082497
......@@ -108,6 +108,12 @@ zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager)
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;
/* load plugin */
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment