uninitialized variable: size

[libretroshare/src/file_sharing/hash_cache.cc:182]: (error) Uninitialized variable: size

Found by https://github.com/bryongloden/cppcheck
This commit is contained in:
Bryon Gloden, CISSP® 2016-10-01 12:01:09 -04:00 committed by GitHub
parent a75115585b
commit 9ae05112be

View File

@ -76,7 +76,7 @@ void HashStorage::data_tick()
{
FileHashJob job;
RsFileHash hash;
uint64_t size ;
uint64_t size = 0;
{
bool empty ;