diff --git a/zathura/plugin.c b/zathura/plugin.c index f5a5c7a..dff32e8 100644 --- a/zathura/plugin.c +++ b/zathura/plugin.c @@ -190,8 +190,8 @@ zathura_plugin_manager_load(zathura_plugin_manager_t* plugin_manager) continue; } - char* name = NULL; - while ((name = (char*) g_dir_read_name(dir)) != NULL) { + const char* name = NULL; + while ((name = g_dir_read_name(dir)) != NULL) { load_plugin(plugin_manager, plugindir, name); } g_dir_close(dir);