Protection against uninitialized array of bad channels.
authorkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Mar 2010 09:00:38 +0000 (09:00 +0000)
committerkharlov <kharlov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 19 Mar 2010 09:00:38 +0000 (09:00 +0000)
PHOS/AliPHOSClusterizerv1.cxx

index b296714..c9a949f 100644 (file)
@@ -1049,6 +1049,7 @@ void AliPHOSClusterizerv1::SetDistancesToBadChannels()
   if(!fgCalibData->GetNumOfEmcBadChannels()) return;
 
   Int_t badIds[8000];
+  memset(badIds,0,8000*sizeof(Int_t));
   fgCalibData->EmcBadChannelIds(badIds);
 
   AliPHOSEmcRecPoint* rp;