wallet: Fix segmentation fault in CreateWalletFromFile

This commit is contained in:
MarcoFalke
2019-08-19 17:13:11 -04:00
parent fab3c34412
commit fa734603b7
5 changed files with 26 additions and 1 deletions

View File

@@ -4243,7 +4243,7 @@ bool CWallet::Verify(interfaces::Chain& chain, const WalletLocation& location, b
std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain, const WalletLocation& location, uint64_t wallet_creation_flags)
{
const std::string& walletFile = WalletDataFilePath(location.GetPath()).string();
const std::string walletFile = WalletDataFilePath(location.GetPath()).string();
// needed to restore wallet transaction meta data after -zapwallettxes
std::vector<CWalletTx> vWtx;