forked from lthn/blockchain
minor fix in get_bundle_root_dir()
This commit is contained in:
parent
9722b3baf9
commit
bda624e26a
1 changed files with 2 additions and 3 deletions
|
|
@ -40,9 +40,8 @@ namespace plain_wallet
|
|||
{
|
||||
std::string get_bundle_root_dir()
|
||||
{
|
||||
char buffer[1000] = {0};
|
||||
strcpy(buffer, getenv("HOME"));
|
||||
return buffer;
|
||||
char* env = getenv("HOME");
|
||||
return env ? env : "";
|
||||
}
|
||||
|
||||
std::string get_wallets_folder()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue