diff --git a/plugin/src/dap_plugin_manifest.c b/plugin/src/dap_plugin_manifest.c index b18bb6a176bd60d29cc2a2add84138a17232fc6a..514ac0b2f2d27fef8d4dd9b454e792857cec7032 100644 --- a/plugin/src/dap_plugin_manifest.c +++ b/plugin/src/dap_plugin_manifest.c @@ -232,10 +232,13 @@ dap_plugin_manifest_t* dap_plugin_manifest_add_from_file(const char *a_file_path l_manifest->path = dap_path_get_dirname(a_file_path); } - char * l_config_path = dap_strdup_printf("%s/%s.cfg", l_manifest->path,l_manifest->name ); - if(dap_file_test(l_config_path)) // If present custom config + char * l_config_path = dap_strdup_printf("%s/%s", l_manifest->path,l_manifest->name ); + char * l_config_path_test = dap_strdup_printf("%s.cfg", l_config_path); + if(dap_file_test(l_config_path_test)) // If present custom config l_manifest->config = dap_config_open(l_config_path); DAP_DELETE(l_config_path); + DAP_DELETE(l_config_path_test); + HASH_ADD_STR(s_manifests,name,l_manifest);