Skip to content

Commit

Permalink
Fixed jump on uninitialized value by initializing mutex locks
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiqaRasool committed Oct 4, 2024
1 parent 99738c6 commit 07826ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libraries/JANA/Calibrations/JCalibrationManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

Expand Down

0 comments on commit 07826ef

Please sign in to comment.