include/comphelper/errcode.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit d852e411b52cda24f2d79070798a2fa662bb71f1
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Fri Oct 6 09:38:01 2023 +0100
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Fri Oct 6 15:24:27 2023 +0200

    cid#1547076 Uninitialized scalar field
    
    Change-Id: Iddccb0a468fd5341115851da1720a8fee97a92f7
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157634
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/include/comphelper/errcode.hxx b/include/comphelper/errcode.hxx
index 6e5390b9a09b..3d3773fadf50 100644
--- a/include/comphelper/errcode.hxx
+++ b/include/comphelper/errcode.hxx
@@ -181,7 +181,7 @@ namespace o3tl
 class SAL_WARN_UNUSED ErrCodeMsg
 {
 public:
-    ErrCodeMsg() : mnCode(0) {}
+    ErrCodeMsg() : mnCode(0), mnDialogMask(DialogMask::NONE) {}
 #ifdef LIBO_ERRMSG_USE_SOURCE_LOCATION
     ErrCodeMsg(ErrCode code, const OUString& arg, 
std::experimental::source_location loc = 
std::experimental::source_location::current())
         : mnCode(code), maArg1(arg),  mnDialogMask(DialogMask::NONE), 
moLoc(loc) {}

Reply via email to