Skip to content
Snippets Groups Projects
Commit 87738d31 authored by oljas.jarasbaev's avatar oljas.jarasbaev Committed by Constantin P.
Browse files

Feature 12444

parent 2bd56172
No related branches found
No related tags found
1 merge request!1730Feature 12444
Subproject commit 0e4b729ab659a7fc882b6df526cf2b9f87cdaaeb Subproject commit b67c2d87d32ec7f3575caef58b664adb1771fdc2
...@@ -359,11 +359,13 @@ const char* dap_chain_wallet_get_path(dap_config_t * a_config) ...@@ -359,11 +359,13 @@ const char* dap_chain_wallet_get_path(dap_config_t * a_config)
return s_wallets_path; /* Fine, just return existen value */ return s_wallets_path; /* Fine, just return existen value */
/* Retrieve Wallet's store path from config */ /* Retrieve Wallet's store path from config */
if ( !(l_cp = (char *) dap_config_get_item_str(a_config, "resources", "wallets_path")) ) if ( !(l_cp = dap_config_get_item_str_path_default(a_config, "resources", "wallets_path", NULL)) )
return log_it(L_WARNING, "No path to wallet's store has been defined"), l_cp; return log_it(L_WARNING, "No path to wallet's store has been defined"), l_cp;
return strncpy(s_wallets_path, l_cp, sizeof(s_wallets_path) - 1 ); /* Make local copy , return it to caller */ strncpy(s_wallets_path, l_cp, sizeof(s_wallets_path) - 1 ); /* Make local copy , return it to caller */
DAP_DEL_Z(l_cp);
return s_wallets_path;
} }
/** /**
......
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