]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity
authorphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 May 2011 09:32:39 +0000 (09:32 +0000)
committerphille <phille@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 23 May 2011 09:32:39 +0000 (09:32 +0000)
HLT/EMCAL/AliHLTEMCALMapper.cxx

index a3d0fd7afda4cd94abd94f039cd89cc0c8864e65..518652420e89f372d7d1dca1eb5ca8fd24e769f7 100644 (file)
@@ -84,7 +84,7 @@ AliHLTEMCALMapper::InitAltroMapping(const unsigned long specification )
              fHw2geomapPtr[i].fGain = 0;
            }
          // MAXCHANNELS
-         if( nChannels <= MAXCHANNELS )
+         if( nChannels > 0 && nChannels <= MAXCHANNELS )
            {
              for(int i=0; i<nChannels; i ++)
                {