mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-29 17:28:41 -04:00
suppressed uninitialised memory leak in LocalDirectoryStorage
This commit is contained in:
parent
b14e4d50cf
commit
dec5c5c4b4
2 changed files with 7 additions and 1 deletions
|
@ -306,6 +306,12 @@ void DirectoryStorage::checkSave()
|
|||
/* Local Directory Storage */
|
||||
/******************************************************************************************************************/
|
||||
|
||||
LocalDirectoryStorage::LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id)
|
||||
: DirectoryStorage(own_id,fname)
|
||||
{
|
||||
mTSChanged = false ;
|
||||
}
|
||||
|
||||
RsFileHash LocalDirectoryStorage::makeEncryptedHash(const RsFileHash& hash)
|
||||
{
|
||||
return RsDirUtil::sha1sum(hash.toByteArray(),hash.SIZE_IN_BYTES);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue