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 a3d0fd7..5186524 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 ++)
                {