Merge pull request #5856

f56e160 unit_tests: Fix uninitialized values (liptakmatyas)
This commit is contained in:
luigi1111 2019-09-08 20:06:04 -05:00
commit d91393daaf
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010
1 changed files with 1 additions and 1 deletions

View File

@ -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 get_block_hash(uint64_t height)
{ {
crypto::hash hash; crypto::hash hash = crypto::null_hash;
*((uint64_t*)&hash) = height; *((uint64_t*)&hash) = height;
return hash; return hash;
} }