]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - CORRFW/AliCFManager.cxx
Converting PWG/TRD to native cmake
[u/mrichter/AliRoot.git] / CORRFW / AliCFManager.cxx
index 045c57317b90241a3a42e85342191a265ab8e44d..3e697868497c5d611155e78598532341ed37088a 100644 (file)
@@ -257,7 +257,11 @@ void AliCFManager::SetParticleCutsList(Int_t isel, TObjArray* array) {
   
   Int_t nstep = fNStepPart ;
   
-  if (!fPartCutList) fPartCutList = new TObjArray*[nstep] ;
+  if (!fPartCutList) {
+    fPartCutList = new TObjArray*[nstep] ;
+    for (Int_t istep = 0; istep < nstep; istep++)  fPartCutList[istep] = 0; 
+  }
+  
   if (isel >= nstep) {
     AliWarning(Form("Selection index out of Range! isel=%i, max. number of selections= %i", isel,nstep));
     return;