mirror of
https://github.com/monero-project/monero.git
synced 2026-01-20 11:32:59 +01:00
unit_tests: initialize a field to silence a valgrind report
A memory chunk is split in two, and the concatenation of the two parts compared to the original, triggering a comparison with uninitialized (with a copy of itself, but valgrind does not realize that).
This commit is contained in:
@@ -242,6 +242,7 @@ namespace
|
||||
m_req_head.m_cb = m_in_data.size();
|
||||
m_req_head.m_have_to_return_data = true;
|
||||
m_req_head.m_command = expected_command;
|
||||
m_req_head.m_return_code = 0;
|
||||
m_req_head.m_flags = LEVIN_PACKET_REQUEST;
|
||||
m_req_head.m_protocol_version = LEVIN_PROTOCOL_VER_1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user