1
0
Fork 0
forked from lthn/blockchain

minor fix in get_bundle_root_dir()

This commit is contained in:
sowle 2020-02-21 00:15:15 +03:00
parent 9722b3baf9
commit bda624e26a
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -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()