From 576df9c40f3cdca7d45b466ed4ccf8eacd62647d Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 14 May 2020 08:09:56 -0400 Subject: [PATCH] fix segfault by initializing make_shared --- src/wallet/monero_wallet_core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wallet/monero_wallet_core.cpp b/src/wallet/monero_wallet_core.cpp index 3559393..5888c73 100644 --- a/src/wallet/monero_wallet_core.cpp +++ b/src/wallet/monero_wallet_core.cpp @@ -2063,7 +2063,7 @@ namespace monero { } // link tx set and return - shared_ptr tx_set; + shared_ptr tx_set = make_shared(); tx_set->m_txs = txs; for (int i = 0; i < txs.size(); i++) txs[i]->m_tx_set = tx_set; if (!multisig_tx_hex.empty()) tx_set->m_multisig_tx_hex = multisig_tx_hex;