mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 15:57:08 -05:00
suppressed uninitialised memory leak in LocalDirectoryStorage
This commit is contained in:
parent
b14e4d50cf
commit
dec5c5c4b4
@ -306,6 +306,12 @@ void DirectoryStorage::checkSave()
|
|||||||
/* Local Directory Storage */
|
/* 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)
|
RsFileHash LocalDirectoryStorage::makeEncryptedHash(const RsFileHash& hash)
|
||||||
{
|
{
|
||||||
return RsDirUtil::sha1sum(hash.toByteArray(),hash.SIZE_IN_BYTES);
|
return RsDirUtil::sha1sum(hash.toByteArray(),hash.SIZE_IN_BYTES);
|
||||||
|
@ -210,7 +210,7 @@ private:
|
|||||||
class LocalDirectoryStorage: public DirectoryStorage
|
class LocalDirectoryStorage: public DirectoryStorage
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id) : DirectoryStorage(own_id,fname) {}
|
LocalDirectoryStorage(const std::string& fname,const RsPeerId& own_id);
|
||||||
virtual ~LocalDirectoryStorage() {}
|
virtual ~LocalDirectoryStorage() {}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user