Skip to content
Snippets Groups Projects
Commit ff5fd459 authored by Constantin Papizh's avatar Constantin Papizh
Browse files

config init fix

parent ebf2a875
No related branches found
No related tags found
2 merge requests!21Master,!20init concerned fixes
......@@ -79,9 +79,9 @@ int dap_chain_node_client_init(void)
{
dap_config_t *g_config;
// read listen_port_tcp from settings
memcpy( l_sys_dir_path + l_sys_dir_path_len, SYSTEM_CONFIGS_DIR, sizeof(SYSTEM_CONFIGS_DIR) );
dap_config_init(l_sys_dir_path);
memset(l_sys_dir_path + l_sys_dir_path_len, '\0', MAX_PATH - l_sys_dir_path_len);
memcpy( s_sys_dir_path + l_sys_dir_path_len, SYSTEM_CONFIGS_DIR, sizeof(SYSTEM_CONFIGS_DIR) );
dap_config_init(s_sys_dir_path);
memset(s_sys_dir_path + l_sys_dir_path_len, '\0', MAX_PATH - l_sys_dir_path_len);
if((g_config = dap_config_open(DAP_APP_NAME)) == NULL) {
return -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment