Merge pull request #1477

d55e2266 Fixed uninitialized valgrind errors in serialization tests (Lee Clagett)
This commit is contained in:
Riccardo Spagni 2016-12-20 23:00:54 +02:00
commit 5a66365cdd
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
1 changed files with 4 additions and 2 deletions

View File

@ -630,9 +630,11 @@ TEST(Serialization, serializes_ringct_types)
tx0.set_null();
tx0.version = 2;
cryptonote::txin_to_key txin_to_key1;
cryptonote::txin_to_key txin_to_key1{};
txin_to_key1.amount = 100;
txin_to_key1.key_offsets.resize(4);
cryptonote::txin_to_key txin_to_key2;
cryptonote::txin_to_key txin_to_key2{};
txin_to_key2.amount = 200;
txin_to_key2.key_offsets.resize(4);
tx0.vin.push_back(txin_to_key1);
tx0.vin.push_back(txin_to_key2);