comphelper/source/streaming/memorystream.cxx |    2 +-
 include/vcl/pdfwriter.hxx                    |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 4be7c2a2b387f7aca679944728cd268df0907a52
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun May 22 11:58:00 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun May 22 14:34:23 2022 +0200

    cid#1504544 deliberately Uninitialized scalar field
    
    Change-Id: Idbc44ac01787f93fa5af1e5358a70590fa4cc64d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134722
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/comphelper/source/streaming/memorystream.cxx 
b/comphelper/source/streaming/memorystream.cxx
index 2abcb6b1209f..7edfe7a78ce0 100644
--- a/comphelper/source/streaming/memorystream.cxx
+++ b/comphelper/source/streaming/memorystream.cxx
@@ -87,9 +87,9 @@ private:
     {
         sal_Int8 value;
         NoInitInt8() noexcept {
-            // do nothing
             static_assert(sizeof(NoInitInt8) == sizeof(sal_Int8), "invalid 
size");
             static_assert(alignof(NoInitInt8) == alignof(sal_Int8), "invalid 
alignment");
+            /* coverity[uninit_member] - deliberately do nothing to leave 
uninitialized */
         }
     };
 
commit 6245eeeaa10479e1e166cbc65de7152617a2c8e5
Author:     Caolán McNamara <[email protected]>
AuthorDate: Sun May 22 11:53:53 2022 +0100
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sun May 22 14:34:09 2022 +0200

    cid#1504541 Uninitialized scalar field
    
    Change-Id: I1fa061f9713c808bd06933ae9c574e70a1ec0915
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134721
    Tested-by: Caolán McNamara <[email protected]>
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/include/vcl/pdfwriter.hxx b/include/vcl/pdfwriter.hxx
index ed703cc68a95..8764f3f49c8e 100644
--- a/include/vcl/pdfwriter.hxx
+++ b/include/vcl/pdfwriter.hxx
@@ -398,6 +398,7 @@ public:
                   FileSelect( false ),
                   MaxLen( 0 ),
                   Format( FormatType::Text ),
+                  DecimalAccuracy ( 0 ),
                   PrependCurrencySymbol( false )
         {}
 

Reply via email to