unit_tests: initialize enough to silence valgrind

This commit is contained in:
moneromooo-monero 2015-09-02 18:50:30 +01:00
parent 555d90b2c9
commit b0a98b2cec
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -394,6 +394,8 @@ TEST(Serialization, serializes_transacion_signatures_correctly)
// Not enough signature vectors for all inputs // Not enough signature vectors for all inputs
txin_to_key txin_to_key1; txin_to_key txin_to_key1;
txin_to_key1.amount = 1000000000000;
memset(txin_to_key1.k_image.data,0,32);
txin_to_key1.key_offsets.resize(2); txin_to_key1.key_offsets.resize(2);
tx.vin.clear(); tx.vin.clear();
tx.vin.push_back(txin_to_key1); tx.vin.push_back(txin_to_key1);