summaryrefslogtreecommitdiff
path: root/cppu
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-08-06 08:56:52 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-08-06 10:54:46 +0200
commit373da7a00986ea95ce959242c0876a5eaf18a1b6 (patch)
tree1154e63201c4f43d15aed1944a128c0b30167762 /cppu
parent1f4986d178e9bab1be48e0c0a393271598e31eee (diff)
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@redhat.com>
Diffstat (limited to 'cppu')
-rw-r--r--cppu/source/threadpool/current.cxx9
1 files changed, 6 insertions, 3 deletions
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()