Skip to content

Commit 6383682

Browse files
shahor02sawenzel
authored andcommitted
Fix: default init. of some ClusterNativeAccess members
1 parent 5a29b5a commit 6383682

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

DataFormats/Detectors/TPC/include/DataFormatsTPC/ClusterNative.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,13 +155,13 @@ struct ClusterNative {
155155
// This is an index struct to access TPC clusters inside sectors and rows. It shall not own the data, but just point to
156156
// the data inside a buffer.
157157
struct ClusterNativeAccess {
158-
const ClusterNative* clustersLinear;
158+
const ClusterNative* clustersLinear = nullptr;
159159
const ClusterNative* clusters[constants::MAXSECTOR][constants::MAXGLOBALPADROW];
160-
const o2::dataformats::MCTruthContainer<o2::MCCompLabel>* clustersMCTruth;
160+
const o2::dataformats::MCTruthContainer<o2::MCCompLabel>* clustersMCTruth = nullptr;
161161
unsigned int nClusters[constants::MAXSECTOR][constants::MAXGLOBALPADROW];
162162
unsigned int nClustersSector[constants::MAXSECTOR];
163163
unsigned int clusterOffset[constants::MAXSECTOR][constants::MAXGLOBALPADROW];
164-
unsigned int nClustersTotal;
164+
unsigned int nClustersTotal = 0;
165165

166166
void setOffsetPtrs();
167167
};

0 commit comments

Comments
 (0)