mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 13:13:34 +01:00
Windows: modification to make Coverity happy!
This commit is contained in:
parent
625259d226
commit
e47f94cb43
@ -4641,8 +4641,7 @@ static BOOL Mount (HWND hwndDlg, int nDosDriveNo, wchar_t *szFileName, int pim)
|
|||||||
// If keyfiles are enabled, test empty password first
|
// If keyfiles are enabled, test empty password first
|
||||||
if (!mounted && KeyFilesEnable && FirstKeyFile && bEffectiveTryEmptyPasswordWhenKeyfileUsed)
|
if (!mounted && KeyFilesEnable && FirstKeyFile && bEffectiveTryEmptyPasswordWhenKeyfileUsed)
|
||||||
{
|
{
|
||||||
Password emptyPassword;
|
Password emptyPassword = {0};
|
||||||
emptyPassword.Length = 0;
|
|
||||||
|
|
||||||
KeyFilesApply (hwndDlg, &emptyPassword, FirstKeyFile, szFileName);
|
KeyFilesApply (hwndDlg, &emptyPassword, FirstKeyFile, szFileName);
|
||||||
// try TrueCrypt mode first since it is quick, only if no custom pim specified
|
// try TrueCrypt mode first since it is quick, only if no custom pim specified
|
||||||
|
Loading…
Reference in New Issue
Block a user