diff options
author | George Hazan <george.hazan@gmail.com> | 2013-12-05 20:46:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-12-05 20:46:18 +0000 |
commit | 41ab2ffa22eab57c55ba73a8a6292a490414eabc (patch) | |
tree | 6cd8811f1599f45d4e0af940bda08dc5fe3e58c0 /src | |
parent | 0b0980ca4414e0f3771db1e70b16d81914e75596 (diff) |
full cycle: setting, resetting, changing password
git-svn-id: http://svn.miranda-ng.org/main/trunk@7058 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src')
-rw-r--r-- | src/core/stdcrypt/encrypt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/stdcrypt/encrypt.cpp b/src/core/stdcrypt/encrypt.cpp index c5d0bbb7bf..b4bdae7e01 100644 --- a/src/core/stdcrypt/encrypt.cpp +++ b/src/core/stdcrypt/encrypt.cpp @@ -113,7 +113,7 @@ bool CStdCrypt::checkPassword(const char *pszPassword) // sets the master password (in utf-8)
void CStdCrypt::setPassword(const char *pszPassword)
{
- m_password = pszPassword;
+ m_password = (pszPassword == NULL) ? "Miranda" : pszPassword;
}
// result must be freed using mir_free or assigned to mir_ptr<BYTE>
|