From e6348652046b054cf69971f5bfa4024679dd320a Mon Sep 17 00:00:00 2001 From: morsch Date: Sun, 23 Jan 2011 20:14:19 +0000 Subject: [PATCH] Coverity corrections. --- EPOS/AliGenEpos.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EPOS/AliGenEpos.cxx b/EPOS/AliGenEpos.cxx index 7e4cfb6938a..495f9002856 100644 --- a/EPOS/AliGenEpos.cxx +++ b/EPOS/AliGenEpos.cxx @@ -54,7 +54,7 @@ void AliGenEpos::Init() { void AliGenEpos::Generate() { // Does actual generation and output conversion - Float_t polar[3] = {0,0,0}; + Float_t polar[3] = {0,0,0}; Float_t origin0[3] = {0,0,0}; Float_t origin[3] = {0,0,0}; fNprimaries = 0; @@ -74,6 +74,7 @@ void AliGenEpos::Generate() { Int_t *idsOnStack = NULL; idsOnStack = new Int_t[np]; + for (int i = 0; i < np; i++) idsOnStack[i] = 0; TParticle *iparticle; for (int i = 0; i < np; i++) { -- 2.39.3