mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 08:59:37 -05:00
Fix Initialisation of Private in RsAccountDetails
This commit is contained in:
parent
52f488c84f
commit
7fd84f28fe
@ -59,14 +59,17 @@ RsAccountsDetail *rsAccounts;
|
|||||||
static bool checkAccount(std::string accountdir, AccountDetails &account,std::map<std::string,std::vector<std::string> >& unsupported_keys);
|
static bool checkAccount(std::string accountdir, AccountDetails &account,std::map<std::string,std::vector<std::string> >& unsupported_keys);
|
||||||
|
|
||||||
AccountDetails::AccountDetails()
|
AccountDetails::AccountDetails()
|
||||||
:mIsHiddenLoc(false), mFirstRun(false)
|
:mSslId(""), mAccountDir(""), mPgpId(""), mPgpName(""), mPgpEmail(""),
|
||||||
|
mLocation(""), mIsHiddenLoc(false), mFirstRun(false)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
RsAccountsDetail::RsAccountsDetail()
|
RsAccountsDetail::RsAccountsDetail()
|
||||||
:mAccountsLocked(false)
|
:mAccountsLocked(false), mPreferredId(""), mBaseDirectory("")
|
||||||
{
|
{
|
||||||
|
mAccounts.clear();
|
||||||
|
mUnsupportedKeys.clear();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -812,8 +815,8 @@ static bool checkAccount(std::string accountdir, AccountDetails &account,std::ma
|
|||||||
#endif
|
#endif
|
||||||
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
/******************************** WINDOWS/UNIX SPECIFIC PART ******************/
|
||||||
|
|
||||||
if(!check)
|
if (!check)
|
||||||
return dataDirectory;
|
return dataDirectory;
|
||||||
|
|
||||||
/* Make sure the directory exists, else return emptyString */
|
/* Make sure the directory exists, else return emptyString */
|
||||||
if (!RsDirUtil::checkDirectory(dataDirectory))
|
if (!RsDirUtil::checkDirectory(dataDirectory))
|
||||||
|
Loading…
Reference in New Issue
Block a user