From bbffcecdfcfb4f70379f97348ef1b836b287029b Mon Sep 17 00:00:00 2001 From: Rene Brun <Rene.Brun@cern.ch> Date: Wed, 25 Aug 2010 10:55:10 +0000 Subject: [PATCH] Add protection (coverity) git-svn-id: http://root.cern.ch/svn/root/trunk@34996 27541ba8-7e3a-0410-8455-c3a389f83636 --- math/foam/src/TFoam.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/math/foam/src/TFoam.cxx b/math/foam/src/TFoam.cxx index 5126580c798..9356dcf2277 100644 --- a/math/foam/src/TFoam.cxx +++ b/math/foam/src/TFoam.cxx @@ -1366,7 +1366,7 @@ void TFoam::SetXdivPRD(Int_t iDim, Int_t len, Double_t xDiv[]) // Priting predefined division points cout<<" SetXdivPRD, idim= "<<iDim<<" len= "<<len<<" "<<endl; for(i=0; i<len; i++) { - cout<< (*fXdivPRD[iDim])[i] <<" "; + if (iDim < fDim) cout<< (*fXdivPRD[iDim])[i] <<" "; } cout<<endl; for(i=0; i<len; i++) cout<< xDiv[i] <<" "; -- GitLab