Code

plugin: Fixed detection of plugins loaded twice.
authorSebastian Harl <sh@tokkee.org>
Sat, 19 Apr 2014 09:22:17 +0000 (11:22 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 19 Apr 2014 09:22:17 +0000 (11:22 +0200)
This was missing in commit fdfe2a68ba1838cdb1c34d3275d129fb217fbd9d.

src/core/plugin.c

index e6df9e9c2a9da7b1746fba2121492dbce630f0bc..1c07538125506ebbc2e49952af0be351e58456db 100644 (file)
@@ -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;