Coverity 20275 Out-of-bounds write
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 13 May 2013 10:31:10 +0000 (10:31 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 13 May 2013 10:31:10 +0000 (10:31 +0000)
EVGEN/AliGenMUONLMR.cxx

index cb160d2..10c0705 100644 (file)
@@ -29,12 +29,17 @@ ClassImp(AliGenMUONLMR)
       fPt[i] = NULL;
       fY[i] = NULL;
       fMult[i] = NULL;
-      fDecay[i] = NULL;
       fParticle[i] = NULL;
     }
-    for (int i=0; i<3; i++) fDalitz[i] = NULL;
-    for (int i=0; i<3; i++) fMu[i] = NULL;
-                                                
+    for (int i=0; i<2; i++) {
+      fMu[i]     = NULL;
+      fDecay[i] = NULL;
+    }                                           
+
+    for (int i=0; i<3; i++) {
+      fDalitz[i] = NULL;
+    }                                           
+
   }
 
 //-----------------------------------------------------------