Fix boolean initialization in Orchard transaction builder.

This commit is contained in:
Kris Nuttycombe 2022-04-20 13:45:26 -06:00
parent a440e219d9
commit 4a1fbe990e
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ private:
/// `Builder::Build` has been called, and all subsequent operations will throw an
/// exception.
std::unique_ptr<OrchardBuilderPtr, decltype(&orchard_builder_free)> inner;
bool hasActions;
bool hasActions{false};
Builder() : inner(nullptr, orchard_builder_free), hasActions(false) { }