From: Sebastian Harl Date: Sat, 19 Apr 2014 09:22:17 +0000 (+0200) Subject: plugin: Fixed detection of plugins loaded twice. X-Git-Tag: sysdb-0.1.0~117 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=989c92cf151bedd487480ee24345e034f88a768c;p=sysdb.git plugin: Fixed detection of plugins loaded twice. This was missing in commit fdfe2a68ba1838cdb1c34d3275d129fb217fbd9d. --- 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;