mirror of
https://github.com/wownero/wownero-cpp.git
synced 2026-10-17 23:31:32 +02:00
fix segfault by initializing make_shared
This commit is contained in:
@@ -2063,7 +2063,7 @@ namespace monero {
|
||||
}
|
||||
|
||||
// link tx set and return
|
||||
shared_ptr<monero_tx_set> tx_set;
|
||||
shared_ptr<monero_tx_set> tx_set = make_shared<monero_tx_set>();
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user