From 989c92cf151bedd487480ee24345e034f88a768c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 19 Apr 2014 11:22:17 +0200 Subject: [PATCH] plugin: Fixed detection of plugins loaded twice. This was missing in commit fdfe2a68ba1838cdb1c34d3275d129fb217fbd9d. --- src/core/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/plugin.c b/src/core/plugin.c index e6df9e9..1c07538 100644 --- a/src/core/plugin.c +++ b/src/core/plugin.c @@ -449,7 +449,7 @@ sdb_plugin_load(const char *name, const sdb_plugin_ctx_t *plugin_ctx) } strcat(base_name, name_ptr); - ctx = CTX(sdb_llist_search_by_name(all_plugins, base_name)); + ctx = CTX(sdb_llist_search_by_name(all_plugins, name)); if (ctx) { /* plugin already loaded */ ++ctx->use_cnt; -- 2.30.2