[Libreoffice-commits] core.git: cppu/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Aug 6 08:55:21 UTC 2021


 cppu/source/threadpool/current.cxx |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 373da7a00986ea95ce959242c0876a5eaf18a1b6
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Aug 6 08:56:52 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Aug 6 10:54:46 2021 +0200

    cid#1489779 Uninitialized pointer field
    
    Change-Id: I3a9405ff1ed161a02b590d2ac996d88b5fb1978d
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120099
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/cppu/source/threadpool/current.cxx b/cppu/source/threadpool/current.cxx
index 64b9923286c2..e163a20be2ec 100644
--- a/cppu/source/threadpool/current.cxx
+++ b/cppu/source/threadpool/current.cxx
@@ -81,10 +81,13 @@ static typelib_InterfaceTypeDescription * get_type_XCurrentContext()
 }
 
 IdContainer::IdContainer()
+    : pCurrentContext(nullptr)
+    , pCurrentContextEnv(nullptr)
+    , bInit(false)
+    , pLocalThreadId(nullptr)
+    , nRefCountOfCurrentId(0)
+    , pCurrentId(nullptr)
 {
-    pCurrentContext = nullptr;
-    pCurrentContextEnv = nullptr;
-    bInit = false;
 }
 
 IdContainer::~IdContainer()


More information about the Libreoffice-commits mailing list