about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/plugins.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/plugins.c b/src/plugins/plugins.c
index ac8e33c6..59aa27a9 100644
--- a/src/plugins/plugins.c
+++ b/src/plugins/plugins.c
@@ -165,7 +165,7 @@ plugins_load(const char *const name)
             plugin->init_func(plugin, PACKAGE_VERSION, PACKAGE_STATUS, NULL, NULL);
         }
         log_info("Loaded plugin: %s", name);
-        prefs_add_plugin(args[1]);
+        prefs_add_plugin(name);
         return TRUE;
     } else {
         log_info("Failed to load plugin: %s", name);