From 41ab2ffa22eab57c55ba73a8a6292a490414eabc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Dec 2013 20:46:18 +0000 Subject: full cycle: setting, resetting, changing password git-svn-id: http://svn.miranda-ng.org/main/trunk@7058 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/core/stdcrypt/encrypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core') 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 -- cgit v1.2.3