diff options
| author | MarcoFalke <[email protected]> | 2019-08-19 17:13:11 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-09-03 14:11:11 -0400 |
| commit | fa734603b78ba31ebf0da5d2dbe87386eafff01a (patch) | |
| tree | 79f9b9948e5babdcedf61bbd00981f57e08c32fe /src/wallet/wallet.cpp | |
| parent | test: Print both messages on failure in assert_raises_message (diff) | |
| download | discoin-fa734603b78ba31ebf0da5d2dbe87386eafff01a.tar.xz discoin-fa734603b78ba31ebf0da5d2dbe87386eafff01a.zip | |
wallet: Fix segmentation fault in CreateWalletFromFile
Diffstat (limited to 'src/wallet/wallet.cpp')
| -rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 84fd01730..e5ec8d84b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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; |