From f19cfb336150358214572a35ebe6c97c4975d6a0 Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Wed, 9 Jul 2014 02:01:57 +0200 Subject: Static Code Analysis : Correctly initialize member variables in various constructors --- src/Common/Exception.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Common/Exception.h') 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()); } -- cgit v1.2.3