From 9c0f30192c204b6541fa94dbe55d1676cd517fdb Mon Sep 17 00:00:00 2001 From: Lorenzo Moneta <Lorenzo.Moneta@cern.ch> Date: Mon, 30 Apr 2012 14:52:20 +0000 Subject: [PATCH] fix for Coverity git-svn-id: http://root.cern.ch/svn/root/trunk@44033 27541ba8-7e3a-0410-8455-c3a389f83636 --- hist/hist/src/TH1.cxx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hist/hist/src/TH1.cxx b/hist/hist/src/TH1.cxx index 6a95029ab63..a9d46945b78 100644 --- a/hist/hist/src/TH1.cxx +++ b/hist/hist/src/TH1.cxx @@ -4365,10 +4365,13 @@ void TH1::GetBinXYZ(Int_t binglobal, Int_t &binx, Int_t &biny, Int_t &binz) cons if (GetDimension() < 2) { binx = binglobal%nx; + biny = -1; + binz = -1; } if (GetDimension() < 3) { binx = binglobal%nx; biny = ((binglobal-binx)/nx)%ny; + binz = -1; } if (GetDimension() < 4) { binx = binglobal%nx; -- GitLab