Skip to content

Commit a23a7f6

Browse files
wallet: Avoid potential use of unitialized value bnb_used in CWallet::CreateTransaction(...)
1 parent f6eb85d commit a23a7f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/wallet/wallet.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,6 +2844,8 @@ bool CWallet::CreateTransaction(const std::vector<CRecipient>& vecSend, CTransac
28442844
return false;
28452845
}
28462846
}
2847+
} else {
2848+
bnb_used = false;
28472849
}
28482850

28492851
const CAmount nChange = nValueIn - nValueToSelect;

0 commit comments

Comments
 (0)