VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Common/Exception.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2014-07-09 02:01:57 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2014-11-08 23:20:29 +0100
commitf19cfb336150358214572a35ebe6c97c4975d6a0 (patch)
tree9e611ba28484965be19b102c203f36306f252eba /src/Common/Exception.h
parent9bb962c8bbf5fffde8a884975d7108c6783ab876 (diff)
downloadVeraCrypt-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.h4
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());
}