From 88028c64f8fba1fdd6aa4c643311416a4a6a434f Mon Sep 17 00:00:00 2001 From: "se.gorbunov" <se.gorbunov@gsi.de> Date: Tue, 2 Jan 2024 03:00:11 +0000 Subject: [PATCH] Mvd bugfix: use of an uninitialised array --- reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx b/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx index 22268461f0..82acd5e4ca 100644 --- a/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx +++ b/reco/detectors/mvd/plugins/tasks/CbmMvdSensorHitfinderTask.cxx @@ -310,7 +310,8 @@ void CbmMvdSensorHitfinderTask::ComputeCenterOfGravity(CbmMvdCluster* cluster, T UInt_t shape = 0; Int_t xIndex0 = 0; Int_t yIndex0 = 0; - Double_t sigmaIn[3], sigmaOut[3], shiftIn[3], shiftOut[3]; + + Double_t sigmaIn[3] = {0., 0., 0.}, sigmaOut[3] = {0., 0., 0.}, shiftIn[3] = {0., 0., 0.}, shiftOut[3] = {0., 0., 0.}; //Double_t GetFrameStartTime(Int_t frameNumber); //Double_t GetFrameEndTime(Int_t frameNumber) {return GetFrameStartTime (frameNumber+1);} -- GitLab