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 62d8281..f5cf85b 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];