diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2019-09-08 20:06:04 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2019-09-08 20:06:04 -0500 |
| commit | d91393daafcbd1cbdc6d31c5970ce2f1188e6f42 (patch) | |
| tree | a7da09294ade4bb427c122470aa03134f33940e8 | |
| parent | 93255017622bdfe65717b590ef4938f42f0ec0c8 (diff) | |
| parent | f56e16021729b6b4e92051051d5cd3cb3ba57660 (diff) | |
| download | monzero-core-d91393daafcbd1cbdc6d31c5970ce2f1188e6f42.tar.gz monzero-core-d91393daafcbd1cbdc6d31c5970ce2f1188e6f42.tar.xz monzero-core-d91393daafcbd1cbdc6d31c5970ce2f1188e6f42.zip | |
Merge pull request #5856
f56e160 unit_tests: Fix uninitialized values (liptakmatyas)
| -rw-r--r-- | tests/unit_tests/output_distribution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/output_distribution.cpp b/tests/unit_tests/output_distribution.cpp index 38f442c59..eec694d1e 100644 --- a/tests/unit_tests/output_distribution.cpp +++ b/tests/unit_tests/output_distribution.cpp @@ -93,7 +93,7 @@ bool get_output_distribution(uint64_t amount, uint64_t from, uint64_t to, uint64 crypto::hash get_block_hash(uint64_t height) { - crypto::hash hash; + crypto::hash hash = crypto::null_hash; *((uint64_t*)&hash) = height; return hash; } |
