Skip to content

Commit

Permalink
Another correction of an array initialization detected with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
hapol authored and kresan committed May 4, 2021
1 parent 615c88d commit 9526880
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analysis/R3BAnalysisIncomingFrs.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,10 @@ void R3BAnalysisIncomingFrs::Exec(Option_t* option)
}
}
Int_t nPartLOS = 0;
Int_t nPartc[fNofLosDetectors] = { 0 };
Int_t nPartc[fNofLosDetectors];
for (Int_t d = 0; d < fNofLosDetectors; d++)
nPartc[d] = 0;

Bool_t iLOSType[fNofLosDetectors][32];
Bool_t iLOSPileUp[fNofLosDetectors][32];
for (Int_t idet = 0; idet < fNofLosDetectors; idet++)
Expand Down

0 comments on commit 9526880

Please sign in to comment.