diff --git a/src/chain/script.cpp b/src/chain/script.cpp index 5453ec569f..9a6c2a0b62 100644 --- a/src/chain/script.cpp +++ b/src/chain/script.cpp @@ -250,7 +250,7 @@ script script::from_data(reader& source, bool prefix) NOEXCEPT source.set_limit(expected); } - operations ops; + operations ops{}; ops.reserve(op_count(source)); const auto start = source.get_read_position(); diff --git a/src/chain/witness.cpp b/src/chain/witness.cpp index 255024236d..0b3a0ccafd 100644 --- a/src/chain/witness.cpp +++ b/src/chain/witness.cpp @@ -172,7 +172,7 @@ static data_chunk read_element(reader& source) NOEXCEPT witness witness::from_data(reader& source, bool prefix) NOEXCEPT { size_t size{}; - chunk_cptrs stack; + chunk_cptrs stack{}; if (prefix) {