coverity 17530 fixed
authorsgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Aug 2011 06:24:46 +0000 (06:24 +0000)
committersgorbuno <sgorbuno@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 25 Aug 2011 06:24:46 +0000 (06:24 +0000)
HLT/TPCLib/merger-ca/AliHLTTPCGMMerger.cxx

index 9273b02..29fab2b 100644 (file)
@@ -330,6 +330,8 @@ void AliHLTTPCGMMerger::UnpackSlices()
 
   const AliHLTTPCCASliceOutTrack* firstGlobalTracks[fgkNSlices];
 
+  for( int i=0; i<fgkNSlices; i++) firstGlobalTracks[i] = 0;
+
 #ifdef GLOBAL_TRACKS_SPECIAL_TREATMENT
   const int kMaxTrackIdInSlice = AliHLTTPCCASliceOutTrack::MaxTrackId();
   int* TrackIds = (int*) malloc(kMaxTrackIdInSlice * fgkNSlices * sizeof(int));
@@ -369,10 +371,10 @@ void AliHLTTPCGMMerger::UnpackSlices()
          nTracksCurrent++;
       fSliceNTrackInfos[ iSlice ]++;
     }
-       firstGlobalTracks[iSlice] = sliceTr;
+    firstGlobalTracks[iSlice] = sliceTr;
    
     //std::cout<<"Unpack slice "<<iSlice<<": ntracks "<<slice.NTracks()<<"/"<<fSliceNTrackInfos[iSlice]<<std::endl;
-  } 
+    }
 #ifdef GLOBAL_TRACKS_SPECIAL_TREATMENT
   for (int iSlice = 0;iSlice < fgkNSlices;iSlice++)
   {