Fix for Coverity warning 16208
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 6 Mar 2011 09:42:50 +0000 (09:42 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sun, 6 Mar 2011 09:42:50 +0000 (09:42 +0000)
ITS/AliITSdEdxSamples.cxx

index 9254fc9..0881785 100644 (file)
@@ -39,7 +39,10 @@ AliITSdEdxSamples::AliITSdEdxSamples():TObject(),
 {
   // Default constructor
 
-  for(Int_t i=0; i<fgkMaxSamples; i++) fdEdxSamples[i]=0.;
+  for(Int_t i=0; i<fgkMaxSamples; i++) {
+    fdEdxSamples[i]=0.;
+    fPAtSample[i]=0.;
+  }
 }
 
 //______________________________________________________________________
@@ -50,7 +53,7 @@ AliITSdEdxSamples::AliITSdEdxSamples(Int_t nSamples,Double_t* samples, Double_t
   fParticleSpecie(specie)
 {
   // Standard constructor
-
+  for(Int_t i=0; i<fgkMaxSamples; i++)fPAtSample[i]=0.;
   SetSamples(nSamples,samples);
 }
 //______________________________________________________________________