Coverity
authordainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Nov 2011 16:22:45 +0000 (16:22 +0000)
committerdainese <dainese@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 30 Nov 2011 16:22:45 +0000 (16:22 +0000)
PWG1/ITS/AliMeanVertexCalibTask.cxx

index 9a52f4e..3b54ba7 100644 (file)
@@ -269,6 +269,7 @@ AliESDVertex* AliMeanVertexCalibTask::ReconstructPrimaryVertex(Bool_t constr,Int
     Int_t iskip=0;
     Int_t *skip = new Int_t[evt->GetNumberOfTracks()];
     for(Int_t itr=0;itr<evt->GetNumberOfTracks(); itr++) {
+      skip[itr]=-1; // this done only to initialize all elements
       AliESDtrack* track = evt->GetTrack(itr);
       if(fOnlyITSTPCTracks && track->GetNcls(1)==0) { // skip ITSSA
        skip[iskip++]=itr;