aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2016-12-20 23:00:54 +0200
committerRiccardo Spagni <ric@spagni.net>2016-12-20 23:00:54 +0200
commit5a66365cdd019c00237946563872bde6dc467639 (patch)
treeba759aaa4923580a9bd9068b5347906e8aad55ee
parentMerge pull request #1475 (diff)
parentFixed uninitialized valgrind errors in serialization tests (diff)
downloadmonero-5a66365cdd019c00237946563872bde6dc467639.tar.xz
Merge pull request #1477
d55e2266 Fixed uninitialized valgrind errors in serialization tests (Lee Clagett)
-rw-r--r--tests/unit_tests/serialization.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp
index f8afb2e94..70757dfc1 100644
--- a/tests/unit_tests/serialization.cpp
+++ b/tests/unit_tests/serialization.cpp
@@ -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);