]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/AliTOFLvHvDataPoints.cxx
Fix for TOF new calib task for CPass
[u/mrichter/AliRoot.git] / TOF / AliTOFLvHvDataPoints.cxx
index fcb4d04ae33ec4f1c9471cdc901ebdb63e25542d..d190bc842b1759d84e6f98fd9a2a0d135e543ddd 100644 (file)
@@ -263,7 +263,7 @@ Bool_t AliTOFLvHvDataPoints::MergeMaps() {
               fNumberOfHVdataPoints, fNumberOfLVdataPoints, fNumberOfHVandLVmaps));
 
 
-  Int_t *controller = new Int_t[fNumberOfHVandLVmaps];
+  Int_t *controller = new Int_t[sizeof(Int_t)*fNumberOfHVandLVmaps]; // fix for coverity
   for (Int_t ii=0; ii<fNumberOfHVandLVmaps; ii++) controller[ii]=-1;
   TMath::Sort(fNumberOfHVandLVmaps,timeMaps,controller,kFALSE); // increasing order