From 07826ef697eeb6ced84f6e1fb25007feac2724eb Mon Sep 17 00:00:00 2001 From: raiqarasool Date: Fri, 4 Oct 2024 12:20:03 -0400 Subject: [PATCH] Fixed jump on uninitialized value by initializing mutex locks --- src/libraries/JANA/Calibrations/JCalibrationManager.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libraries/JANA/Calibrations/JCalibrationManager.h b/src/libraries/JANA/Calibrations/JCalibrationManager.h index e45255c1a..2002af403 100644 --- a/src/libraries/JANA/Calibrations/JCalibrationManager.h +++ b/src/libraries/JANA/Calibrations/JCalibrationManager.h @@ -29,6 +29,9 @@ class JCalibrationManager : public JService { public: JCalibrationManager() { + pthread_mutex_init(&m_calibration_mutex, nullptr); + pthread_mutex_init(&m_resource_manager_mutex, nullptr); + SetPrefix("jana"); }