From 079a88ad80f52223321159fc1847e8093ce33087 Mon Sep 17 00:00:00 2001
From: "daniil.frolov" <daniil.frolov@demlabs.net>
Date: Fri, 31 May 2024 03:56:44 +0000
Subject: [PATCH] fix_plugins_config_path

---
 plugin/src/dap_plugin_manifest.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/plugin/src/dap_plugin_manifest.c b/plugin/src/dap_plugin_manifest.c
index b18bb6a17..514ac0b2f 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);
 
-- 
GitLab