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:
moneromooo-monero 2015-09-02 19:05:02 +01:00
parent b0a98b2cec
commit 93aadbd1e4
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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;