Skip to content

Commit bdf170f

Browse files
committed
Initialize struct members
1 parent 004755d commit bdf170f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

PWGUD/Tasks/fwdMuonsUPC.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -304,11 +304,11 @@ struct fwdMuonsUPC {
304304

305305
// struct used to store the ZDC info in a map
306306
struct ZDCinfo {
307-
float timeA;
308-
float timeC;
309-
float enA;
310-
float enC;
311-
int32_t id;
307+
float timeA = 0.f;
308+
float timeC = 0.f;
309+
float enA = 0.f;
310+
float enC = 0.f;
311+
int32_t id = -1;
312312
};
313313

314314
// function that fills a map with the collision id of each udcollision as key

0 commit comments

Comments
 (0)