]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fixing coverity warning.
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2012 07:19:23 +0000 (07:19 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 29 Mar 2012 07:19:23 +0000 (07:19 +0000)
Comment: Warning was anyway false positive

STAT/TStatToolkit.cxx

index 62d8281ceb537be657dc91406b4528131bebbd73..f5cf85b8537d495406937b57cf67e38d7eca10fd 100644 (file)
@@ -1199,7 +1199,7 @@ TGraph * TStatToolkit::MakeGraphSparse(TTree * tree, const char * expr, const ch
   graph->SetMarkerStyle(mstyle); 
   graph->SetMarkerColor(mcolor);
   //
-  Int_t *index = new Int_t[entries];
+  Int_t *index = new Int_t[entries*4];
   TMath::Sort(entries,graph->GetX(),index,kFALSE);
   
   Double_t *tempArray = new Double_t[entries];