diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-07-09 02:01:57 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2014-11-08 23:20:29 +0100 |
commit | f19cfb336150358214572a35ebe6c97c4975d6a0 (patch) | |
tree | 9e611ba28484965be19b102c203f36306f252eba /src/Common/Exception.h | |
parent | 9bb962c8bbf5fffde8a884975d7108c6783ab876 (diff) | |
download | VeraCrypt-f19cfb336150358214572a35ebe6c97c4975d6a0.tar.gz VeraCrypt-f19cfb336150358214572a35ebe6c97c4975d6a0.zip |
Static Code Analysis : Correctly initialize member variables in various constructors
Diffstat (limited to 'src/Common/Exception.h')
-rw-r--r-- | src/Common/Exception.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Exception.h b/src/Common/Exception.h index 5bf9395f..e034404b 100644 --- a/src/Common/Exception.h +++ b/src/Common/Exception.h @@ -35,12 +35,12 @@ namespace VeraCrypt struct ErrorException : public Exception
{
ErrorException (char *langId) : ErrLangId (langId) { }
- ErrorException (const wstring &errMsg) : ErrMsg (errMsg) { }
+ ErrorException (const wstring &errMsg) : ErrLangId(NULL), ErrMsg (errMsg) { }
void Show (HWND parent) const
{
if (ErrMsg.empty())
- ::Error (ErrLangId);
+ ::Error (ErrLangId? ErrLangId : "");
else
::ErrorDirect (ErrMsg.c_str());
}
|